nltk.ParentedTree.treeposition

ParentedTree.treeposition()[source]

The tree position of this tree, relative to the root of the tree. I.e., ptree.root[ptree.treeposition] is ptree.