class documentation

Undocumented

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

Inherited from IncrementalChartParser:

Method chart_parse Return the final parse Chart from which all possible parse trees can be extracted.
Instance Variable _axioms Undocumented
Instance Variable _chart_class Undocumented
Instance Variable _grammar Undocumented
Instance Variable _inference_rules Undocumented
Instance Variable _trace Undocumented
Instance Variable _trace_chart_width Undocumented

Inherited from ChartParser (via IncrementalChartParser, FeatureChartParser):

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 _strategy Undocumented
Instance Variable _use_agenda Undocumented

Inherited from ParserI (via IncrementalChartParser, FeatureChartParser, 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, strategy=BU_LC_INCREMENTAL_FEATURE_STRATEGY, trace_chart_width=20, chart_class=FeatureIncrementalChart, **parser_args): (source) ΒΆ

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

Parameters
grammar:CFGThe grammar used to parse texts.
strategyUndocumented
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.
chart_classThe class that should be used to create the charts used by this parser.
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.
**parser_argsUndocumented