Package nltk :: Package parse :: Module featurechart :: Class FeatureTopDownChartParser
[hide private]
[frames] | no frames]

type FeatureTopDownChartParser

source code

   object --+            
            |            
  api.ParserI --+        
                |        
chart.ChartParser --+    
                    |    
   FeatureChartParser --+
                        |
                       FeatureTopDownChartParser

Instance Methods [hide private]
 
__init__(self, grammar, **parser_args)
Create a new chart parser, that uses grammar to parse texts.
source code

Inherited from chart.ChartParser: chart_parse, grammar, nbest_parse

Inherited from chart.ChartParser (private): _trace_new_edges

Inherited from api.ParserI: batch_iter_parse, batch_nbest_parse, batch_parse, batch_prob_parse, iter_parse, parse, prob_parse

    Deprecated

Inherited from api.ParserI: batch_test, get_parse, get_parse_dict, get_parse_list, get_parse_prob

Method Details [hide private]

__init__(self, grammar, **parser_args)
(Constructor)

source code 

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

Parameters:
  • grammar - The grammar used to parse texts.
  • strategy - A list of rules that should be used to decide what edges to add to the chart (top-down strategy by default).
  • trace - 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.
  • trace_chart_width - The default total width reserved for the chart in trace output. The remainder of each line will be used to display edges.
  • use_agenda - Use an optimized agenda-based algorithm, if possible.
  • chart_class - The class that should be used to create the parse charts.
Overrides: chart.ChartParser.__init__
(inherited documentation)