nltk.tgrep.treepositions_no_leaves

nltk.tgrep.treepositions_no_leaves(tree)[source]

Returns all the tree positions in the given tree which are not leaf nodes.