nltk.ImmutableMultiParentedTree.treepositions¶
-
ImmutableMultiParentedTree.
treepositions
(root)¶ Return a list of all tree positions that can be used to reach this multi-parented tree starting from
root
. I.e., the following is always true:for treepos in ptree.treepositions(root): root[treepos] is ptree