tree2diagram# discopy.grammar.categorial.tree2diagram(tree, dom=closed.Ty())[source]# Translate a depccg.Tree in JSON format into DisCoPy. Parameters: tree (dict) – The tree to translate. dom – The domain for the word boxes, empty by default. Return type: Diagram