Package jazzparser :: Package parsers :: Package tagrank :: Module parser :: Class TagRankParser
[hide private]
[frames] | no frames]

Class TagRankParser

source code

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

Instance Methods [hide private]
 
_create_chart(self, *args, **kwargs) source code
list of tuples
_add_signs(self, offset)
Adds new signs to the chart from the supertagger, using the given offset when requesting them from the tagger.
source code
 
parse(self, *args, **kwargs)
Performs a full parse and returns the results ranked by a product of their tag probabilities.
source code

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]
  shell_tools = [ChartTool(), ProbabilisticResultListTool(), Pro...

Inherited from cky.parser.CkyParser: PARSER_OPTIONS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_create_chart(self, *args, **kwargs)

source code 
Overrides: cky.parser.CkyParser._create_chart

_add_signs(self, offset)

source code 

Adds new signs to the chart from the supertagger, using the given offset when requesting them from the tagger.

Returns: list of tuples
all the signs that were actually added. Each is represented by a tuple (start_node, end_node, sign)
Overrides: cky.parser.CkyParser._add_signs
(inherited documentation)

parse(self, *args, **kwargs)

source code 

Performs a full parse and returns the results ranked by a product of their tag probabilities.

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

Class Variable Details [hide private]

shell_tools

Value:
[ChartTool(), ProbabilisticResultListTool(), ProbabilityTool(), Probab\
ilisticChartTool(),]