nltk.parse.DependencyGraph.tree

DependencyGraph.tree()[source]

Starting with the root node, build a dependency tree using the NLTK Tree constructor. Dependency labels are omitted.