nltk.treeprettyprinter module

Pretty-printing of discontinuous trees. Adapted from the disco-dop project, by Andreas van Cranenburgh. https://github.com/andreasvc/disco-dop

Interesting reference (not used for this code): T. Eschbach et al., Orth. Hypergraph Drawing, Journal of Graph Algorithms and Applications, 10(2) 141–157 (2006)149. https://jgaa.info/accepted/2006/EschbachGuentherBecker2006.10.2.pdf

class nltk.treeprettyprinter.TreePrettyPrinter[source]

Bases: Deprecated, TreePrettyPrinter

Import TreePrettyPrinter using from nltk.tree import TreePrettyPrinter instead.