Package jazzparser :: Package parsers :: Package cky :: Module tools :: Class ChartTool
[hide private]
[frames] | no frames]

Class ChartTool

source code

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

Tool for examining the chart's contents.

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 = 'Inspect CKY Chart'
hash(x)
  commands = ['chart']
  usage = ('chart [<x> [<y>]]', 'show final chart. \'x\' selects...
  help = '\nShow part or all of the chart that was created durin...

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:
('chart [<x> [<y>]]',
 'show final chart. \'x\' selects arcs starting from node x. \'x y\' s\
elects arc (x,y). Use x=\'summary\' to see a short form of the whole c\
hart.')

help

Value:
'''
Show part or all of the chart that was created during parsing.
With no arguments, the whole chart will be printed. Optionally a 
starting node may be given and only arcs starting at this node will 
be displayed. An end node may also be given and only signs on the arc 
between those two nodes will be displayed.
Sign indices are displayed with the entries. These are used to identif\
y 
...