nltk.MultiParentedTree.roots

MultiParentedTree.roots()[source]

The set of all roots of this tree. This set is formed by tracing all possible parent paths until trees with no parents are found.

Type:list(MultiParentedTree)