File size: 1,466 Bytes
8777447 |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# Natural Language Toolkit: Machine Translation
#
# Copyright (C) 2001-2023 NLTK Project
# Author: Edward Loper <[email protected]>
# Steven Bird <[email protected]>
# Peter Ljunglöf <[email protected]>
# Tom Aarsen <>
# URL: <https://www.nltk.org/>
# For license information, see LICENSE.TXT
"""
NLTK Tree Package
This package may be used for representing hierarchical language
structures, such as syntax trees and morphological trees.
"""
# TODO: add LabelledTree (can be used for dependency trees)
from nltk.tree.immutable import (
ImmutableMultiParentedTree,
ImmutableParentedTree,
ImmutableProbabilisticTree,
ImmutableTree,
)
from nltk.tree.parented import MultiParentedTree, ParentedTree
from nltk.tree.parsing import bracket_parse, sinica_parse
from nltk.tree.prettyprinter import TreePrettyPrinter
from nltk.tree.probabilistic import ProbabilisticTree
from nltk.tree.transforms import (
chomsky_normal_form,
collapse_unary,
un_chomsky_normal_form,
)
from nltk.tree.tree import Tree
__all__ = [
"ImmutableMultiParentedTree",
"ImmutableParentedTree",
"ImmutableProbabilisticTree",
"ImmutableTree",
"MultiParentedTree",
"ParentedTree",
"bracket_parse",
"sinica_parse",
"TreePrettyPrinter",
"ProbabilisticTree",
"chomsky_normal_form",
"collapse_unary",
"un_chomsky_normal_form",
"Tree",
]
|