class documentation

Undocumented

Method __init__ Create a new chart parser, that uses grammar to parse texts.

Inherited from ChartParser:

Method chart_parse Return the final parse Chart from which all possible parse trees can be extracted.
Method grammar No summary
Method parse When possible this list is sorted from most likely to least likely.
Method _trace_new_edges Undocumented
Instance Variable _axioms Undocumented
Instance Variable _chart_class Undocumented
Instance Variable _grammar Undocumented
Instance Variable _inference_rules Undocumented
Instance Variable _strategy Undocumented
Instance Variable _trace Undocumented
Instance Variable _trace_chart_width Undocumented
Instance Variable _use_agenda Undocumented

Inherited from ParserI (via ChartParser):

Method parse_all No summary
Method parse_one No summary
Method parse_sents Apply self.parse() to each element of sents. :rtype: iter(iter(Tree))
def __init__(self, grammar, **parser_args): (source) ΒΆ

Create a new chart parser, that uses grammar to parse texts.

Parameters
grammar:CFGThe grammar used to parse texts.
strategy:list(ChartRuleI)A list of rules that should be used to decide what edges to add to the chart (top-down strategy by default).
trace:intThe level of tracing that should be used when parsing a text. 0 will generate no tracing output; and higher numbers will produce more verbose tracing output.
trace_chart_width:intThe default total width reserved for the chart in trace output. The remainder of each line will be used to display edges.
use_agenda:boolUse an optimized agenda-based algorithm, if possible.
chart_classThe class that should be used to create the parse charts.
**parser_argsUndocumented