Package jazzparser :: Package shell :: Module shell
[hide private]
[frames] | no frames]

Module shell

source code

Jazz Parser interactive shell for examining the output of the parser.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Classes [hide private]
  ShellState
Class to wrap up the various bits of state that need to be stored in the shell and that may be manipulated by tools.
  ShellError
  ShellRestoreError
Functions [hide private]
 
interactive_shell(results, options, tagger, parser, formalism, env, seq_id=None, input_data=None)
Use an interactive shell to display and give detailed access to the given results, produced by the parser.
source code
 
restore_shell(name, tools=[])
Restores an interactive shell session from a saved state.
source code
 
empty_shell(tools=[])
Starts up the interactive shell with no shell state.
source code
 
shell(state, tools=[])
Starts up the shell with a given ShellState.
source code
Variables [hide private]
  logger = logging.getLogger("main_logger")
  CORE_TOOLS = [tools.HelpTool(), tools.DerivationTraceTool(), t...
  __package__ = 'jazzparser.shell'
Function Details [hide private]

restore_shell(name, tools=[])

source code 

Restores an interactive shell session from a saved state. Such a state is stored using the 'save' command from a shell session (e.g. after parsing).

shell(state, tools=[])

source code 

Starts up the shell with a given ShellState. This is called by interactive_shell, as used by the parser, and also by restore_shell.


Variables Details [hide private]

CORE_TOOLS

Value:
[tools.HelpTool(), tools.DerivationTraceTool(), tools.DerivationTraceE\
xplorerTool(), tools.AtomsOnlyTool(), tools.ResultListTool(), tools.Ru\
leApplicationTool(), tools.LogLevelTool(), tools.PythonTool(), tools.S\
aveStateTool(), tools.TonalSpaceCoordinatesTool(), tools.LoadResultsTo\
ol(), gstools.LoadGoldStandardTool(), gstools.MarkCorrectTool(),]