Package jazzparser :: Package parsers :: Package pcfg :: Module tools :: Class ProbabilisticChartTool
[hide private]
[frames] | no frames]

Class ProbabilisticChartTool

source code

      object --+    
               |    
shell.tools.Tool --+
                   |
                  ProbabilisticChartTool

Outputs an arc from the chart, ranked by probability

Instance Methods [hide private]
 
run(self, args, state)
Main operation of tool, taking arguments in args and reading and potentially manipulating the shell state.
source code

Inherited from shell.tools.Tool: process_option_list

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

Class Variables [hide private]
  name = 'Probabilistic Chart Arc'
hash(x)
  commands = ['pchart']
  usage = ('pchart <start> <end>', 'show the signs on a given ar...
  help = '\nShow the signs of an arc in the chart ranked by prob...

Inherited from shell.tools.Tool: tool_options

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(self, args, state)

source code 

Main operation of tool, taking arguments in args and reading and potentially manipulating the shell state.

By the time this is called, the options dict is available in self.options.

Overrides: shell.tools.Tool.run
(inherited documentation)

Class Variable Details [hide private]

usage

Value:
('pchart <start> <end>',
 'show the signs on a given arc in the chart ranked by probability.')

help

Value:
'''
Show the signs of an arc in the chart ranked by probabilities.
Specify an arc by its start and end nodes (as with the chart tool).

See also:
  chart, for displaying the whole chart or parts of it.
'''