nltk.Tree.pretty_print

Tree.pretty_print(sentence=None, highlight=(), stream=None, **kwargs)[source]

Pretty-print this tree as ASCII or Unicode art. For explanation of the arguments, see the documentation for nltk.treeprettyprinter.TreePrettyPrinter.