Source code for nltk.treeprettyprinter

# Natural Language Toolkit: ASCII visualization of NLTK trees
# Copyright (C) 2001-2023 NLTK Project
# Author: Andreas van Cranenburgh <>
#         Peter Ljunglöf <>
# URL: <>
# For license information, see LICENSE.TXT

Pretty-printing of discontinuous trees.
Adapted from the disco-dop project, by Andreas van Cranenburgh.

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.

from nltk.internals import Deprecated
from nltk.tree.prettyprinter import TreePrettyPrinter as TPP

[docs]class TreePrettyPrinter(Deprecated, TPP): """Import `TreePrettyPrinter` using `from nltk.tree import TreePrettyPrinter` instead."""
__all__ = ["TreePrettyPrinter"]