nltk.MultiParentedTree.convert

MultiParentedTree.convert(tree)

Convert a tree between different subtypes of Tree. cls determines which class will be used to encode the new tree.

Parameters:tree (Tree) – The tree that should be converted.
Returns:The new Tree.