nltk.ImmutableMultiParentedTree.roots

ImmutableMultiParentedTree.roots()

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)