module documentation

Undocumented

Class ChartCell A cell from the parse chart formed when performing the CYK algorithm. Each cell keeps track of its x and y coordinates (though this will probably be discarded), and a list of spans serving as the cell's entries.
Class DependencySpan A contiguous span over some part of the input string representing dependency (head -> modifier) relationships amongst words. An atomic span corresponds to only one word so it isn't a 'span' in the conventional sense, as its _start_index = _end_index = _head_index for concatenation purposes...
Class ProbabilisticProjectiveDependencyParser A probabilistic, projective dependency parser.
Class ProjectiveDependencyParser A projective, rule-based, dependency parser. A ProjectiveDependencyParser is created with a DependencyGrammar, a set of productions specifying word-to-word dependency relations. The parse() method will then return the set of all parses, in tree representation, for a given input sequence of tokens...
Function arity_parse_demo A demonstration showing the creation of a DependencyGrammar in which a specific number of modifiers is listed for a given head. This can further constrain the number of possible parses created by a ProjectiveDependencyParser...
Function demo Undocumented
Function projective_prob_parse_demo A demo showing the training and use of a projective dependency parser.
Function projective_rule_parse_demo A demonstration showing the creation and use of a DependencyGrammar to perform a projective dependency parse.
def arity_parse_demo(): (source)

A demonstration showing the creation of a DependencyGrammar in which a specific number of modifiers is listed for a given head. This can further constrain the number of possible parses created by a ProjectiveDependencyParser.

def demo(): (source)

Undocumented

def projective_prob_parse_demo(): (source)

A demo showing the training and use of a projective dependency parser.

def projective_rule_parse_demo(): (source)

A demonstration showing the creation and use of a DependencyGrammar to perform a projective dependency parse.