Spaces:
Sleeping
Sleeping
File size: 975 Bytes
d916065 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# Natural Language Toolkit: ASCII visualization of NLTK trees
#
# Copyright (C) 2001-2023 NLTK Project
# Author: Andreas van Cranenburgh <[email protected]>
# Peter Ljunglöf <[email protected]>
# URL: <https://www.nltk.org/>
# For license information, see LICENSE.TXT
"""
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
"""
from nltk.internals import Deprecated
from nltk.tree.prettyprinter import TreePrettyPrinter as TPP
class TreePrettyPrinter(Deprecated, TPP):
"""Import `TreePrettyPrinter` using `from nltk.tree import TreePrettyPrinter` instead."""
__all__ = ["TreePrettyPrinter"]
|