__init__(self,
grammar,
strategy,
trace=0)
(Constructor)
| source code
|
Create a new chart parser, that uses grammar to parse
texts.
- Parameters:
grammar (cfg.Grammar) - The grammar used to parse texts.
strategy (list of ChartRuleI) - A list of rules that should be used to decide what edges to add
to the chart.
trace (int ) - The 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.
- Overrides:
AbstractParse.__init__
|