Package nltk_lite :: Package draw :: Module rdparser :: Class RecursiveDescentDemo
[show private | hide private]
[frames | no frames]

Type RecursiveDescentDemo

object --+
         |
        RecursiveDescentDemo


A graphical tool for exploring the recursive descent parser. The tool displays the parser's tree and the remaining text, and allows the user to control the parser's operation. In particular, the user can expand subtrees on the frontier, match tokens on the frontier against the text, and backtrack. A "step" button simply steps through the parsing process, performing the operations that RecursiveDescentParser would use.
Method Summary
  __init__(self, grammar, sent, trace)
  about(self, *e)
  autostep(self, *e)
  backtrack(self, *e)
  cancel_autostep(self, *e)
  destroy(self, *e)
  edit_grammar(self, *e)
  edit_sentence(self, *e)
  expand(self, *e)
  help(self, *e)
  mainloop(self, *args, **kwargs)
Enter the Tkinter mainloop.
  match(self, *e)
  postscript(self, *e)
  reset(self, *e)
  resize(self, size)
  set_grammar(self, grammar)
  set_sentence(self, sentence)
  step(self, *e)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

mainloop(self, *args, **kwargs)

Enter the Tkinter mainloop. This function must be called if this demo is created from a non-interactive program (e.g. from a secript); otherwise, the demo will close as soon as the script completes.

Generated by Epydoc 2.1 on Tue Sep 5 09:37:22 2006 http://epydoc.sf.net