Data structures¶
Trees¶
A |
|
A |
|
Use Tree.read(s, remove_empty_top_bracketing=True) instead. |
|
|
Parse a Sinica Treebank string and return a tree. |
Pretty-print a tree in text format, either as ASCII or Unicode. |
|
|
|
|
Collapse subtrees with a single child (ie. |
|
|
A Tree represents a hierarchical grouping of leaves and subtrees. |
Feature structures¶
A mapping from feature identifiers to feature values, where each feature value is either a basic value (such as a string or an integer), or a nested feature structure. |
|
A feature structure that acts like a Python dictionary. |
|
A list of feature values, where each feature value is either a basic value (such as a string or an integer), or a nested feature structure. |
|
|
Unify |
|
Return True if |
|
Return a list of the feature paths of all features which are assigned incompatible values by |
A feature identifier that's specialized to put additional constraints, default values, etc. |
|
A feature identifier that's specialized to put additional constraints, default values, etc. |
|
Dependency graphs¶
|
A container for the nodes and labelled edges of a dependency structure. |
Grammars¶
A non-terminal symbol for a context free grammar. |
|
|
Given a string containing a list of symbol names, return a list of |
A context-free grammar. |
|
A grammar production. |
|
A probabilistic context-free grammar. |
|
A probabilistic context free grammar production. |
|
A dependency grammar. |
|
A dependency grammar production. |
|
|
Induce a PCFG grammar from a list of productions. |
|
Return a pair consisting of a starting category and a list of |
Visualizations¶
A dialog window for creating and editing context free grammars. |
|
|
Open a new window containing a graphical diagram of the given trees. |