Package jazzparser :: Package parsers :: Package fail :: Module parser :: Class FailParser
[hide private]
[frames] | no frames]

Class FailParser

source code

        object --+        
                 |        
base.parser.Parser --+    
                     |    
  cky.parser.CkyParser --+
                         |
                        FailParser

A dummy parser that never does any actual parsing.

Instance Methods [hide private]
 
parse(self, derivations=False, summaries=False, inspect=False)
Run the parser on the input, using the specified tagger.
source code

Inherited from cky.parser.CkyParser (private): _add_signs, _create_chart

Inherited from base.parser.Parser: __init__, run_backoff

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from base.parser.Parser: check_options

Class Variables [hide private]

Inherited from cky.parser.CkyParser: PARSER_OPTIONS, shell_tools

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parse(self, derivations=False, summaries=False, inspect=False)

source code 

Run the parser on the input, using the specified tagger. Runs the CKY parsing algorithm to do chart parsing. For details of chart parsing, see Chart class.

If the parser was given a maximum number of iterations, the routine will return as usual after this number is completed, even if no parses have been found.

Parameters:
  • derivations - store derivation traces, which can subsequently be used to trace all the derivations that led to any given sign in the chart. Overridden by the module option if it's given
  • summaries - output chart summary information to stderr during parsing to track progress. Set to 2 to output some info, but not the full chart.
  • inspect - launch a graphical chart inspector during the parse to display interactive chart information.
Returns:
a list of signs that span the full input.
Overrides: base.parser.Parser.parse
(inherited documentation)