nltk.tgrep.unique_ancestors

nltk.tgrep.unique_ancestors(node)[source]

Returns the list of all nodes dominating the given node, where there is only a single path of descent.