class RegexpChunkApp(object): (source)
Constructor: RegexpChunkApp(devset_name, devset, grammar, chunk_label, tagset)
A graphical tool for exploring the regular expression based chunk parser nltk.chunk.RegexpChunkParser.
See HELP for instructional text.
| Method | __init__ |
No summary |
| Method | about |
Undocumented |
| Method | destroy |
Undocumented |
| Method | load |
Undocumented |
| Method | mainloop |
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. |
| Method | normalize |
Undocumented |
| Method | reset |
Undocumented |
| Method | resize |
Undocumented |
| Method | save |
Undocumented |
| Method | save |
Undocumented |
| Method | set |
Undocumented |
| Method | show |
Undocumented |
| Method | show |
Undocumented |
| Method | show |
Undocumented |
| Method | toggle |
Undocumented |
| Method | update |
Undocumented |
| Constant | HELP |
Undocumented |
| Constant | HELP |
Undocumented |
| Constant | SAVE |
Undocumented |
| Constant | TAGSET |
Undocumented |
| Instance Variable | charnum |
Undocumented |
| Instance Variable | chunker |
The chunker built from the grammar string |
| Instance Variable | devset |
The development set -- a list of chunked sentences. |
| Instance Variable | devset |
Undocumented |
| Instance Variable | devset |
The index into the development set of the first instance that's currently being viewed. |
| Instance Variable | devset |
The name of the development set (for save files). |
| Instance Variable | devset |
Undocumented |
| Instance Variable | devset |
Undocumented |
| Instance Variable | devsetbox |
Undocumented |
| Instance Variable | devsetlabel |
Undocumented |
| Instance Variable | evalbox |
Undocumented |
| Instance Variable | grammar |
The unparsed grammar string |
| Instance Variable | grammar |
The last time() that the grammar was changed. |
| Instance Variable | grammarbox |
Undocumented |
| Instance Variable | grammarlabel |
Undocumented |
| Instance Variable | helpbox |
Undocumented |
| Instance Variable | helptabs |
Undocumented |
| Instance Variable | linenum |
Undocumented |
| Instance Variable | normalized |
A normalized version of self.grammar. |
| Instance Variable | status |
Undocumented |
| Instance Variable | tagset |
Undocumented |
| Instance Variable | top |
Undocumented |
| Instance Variable | trace |
Undocumented |
| Method | _adaptively |
Modify _EVAL_CHUNK to try to keep the amount of time that the eval demon takes between _EVAL_DEMON_MIN and _EVAL_DEMON_MAX. |
| Method | _chunkparse |
Undocumented |
| Method | _chunks |
Undocumented |
| Method | _color |
Undocumented |
| Method | _devset |
Undocumented |
| Method | _devset |
Undocumented |
| Method | _devset |
Undocumented |
| Method | _eval |
Undocumented |
| Method | _eval |
Undocumented |
| Method | _grammarcheck |
Undocumented |
| Method | _highlight |
Undocumented |
| Method | _history |
Undocumented |
| Method | _history |
Undocumented |
| Method | _init |
Undocumented |
| Method | _init |
Undocumented |
| Method | _init |
Undocumented |
| Method | _init |
Undocumented |
| Method | _syntax |
Undocumented |
| Method | _view |
Undocumented |
| Constant | _BUTTON |
Undocumented |
| Constant | _DEVSETBOX |
Undocumented |
| Constant | _DRAW |
Undocumented |
| Constant | _EVAL |
If the user has not pressed any key for this amount of time (in seconds), and the current grammar has not been evaluated, then the eval demon will evaluate it. |
| Constant | _EVAL |
The maximum amount of time that the eval demon should take each time it runs -- if it takes more than this time, _EVAL_CHUNK will be modified downwards. |
| Constant | _EVAL |
The minimum amount of time that the eval demon should take each time it runs -- if it takes less than this time, _EVAL_CHUNK will be modified upwards. |
| Constant | _EVAL |
The frequency (in seconds) at which the eval demon is run |
| Constant | _EVALBOX |
Undocumented |
| Constant | _FONT |
Undocumented |
| Constant | _FRAME |
Undocumented |
| Constant | _GRAMMARBOX |
Undocumented |
| Constant | _HELPBOX |
Undocumented |
| Constant | _HELPTAB |
Undocumented |
| Constant | _HELPTAB |
Undocumented |
| Constant | _HELPTAB |
Undocumented |
| Constant | _HELPTAB |
Undocumented |
| Constant | _HELPTAB |
Undocumented |
| Constant | _SCALE |
Undocumented |
| Constant | _STATUS |
Undocumented |
| Instance Variable | _autoscale |
Undocumented |
| Instance Variable | _chunk |
Undocumented |
| Instance Variable | _devset |
Undocumented |
| Instance Variable | _EVAL |
The number of sentences that should be evaluated by the eval demon each time it runs. |
| Instance Variable | _eval |
Undocumented |
| Instance Variable | _eval |
The grammar that is being currently evaluated by the eval demon. |
| Instance Variable | _eval |
The index of the next sentence in the development set that should be looked at by the eval demon. |
| Instance Variable | _eval |
Undocumented |
| Instance Variable | _eval |
A normalized copy of _eval_grammar. |
| Instance Variable | _eval |
The ChunkScore object that's used to keep track of the score of the current grammar on the development set. |
| Instance Variable | _font |
Undocumented |
| Instance Variable | _grammarcheck |
Undocumented |
| Instance Variable | _history |
A list of (grammar, precision, recall, fscore) tuples for grammars that the user has already tried. |
| Instance Variable | _history |
When the user is scrolling through previous grammars, this is used to keep track of which grammar they're looking at. |
| Instance Variable | _last |
The time() when a key was most recently pressed |
| Instance Variable | _showing |
Undocumented |
| Instance Variable | _size |
Undocumented |
| Instance Variable | _smallfont |
Undocumented |
| Parameters | |
| devset | The name of the development set; used for display & for save files. If either the name 'treebank' or the name 'conll2000' is used, and devset is None, then devset will be set automatically. |
| devset | A list of chunked sentences |
| grammar | The initial grammar to display. |
| chunk | Undocumented |
| tagset | Dictionary from tags to string descriptions, used for the help page. Defaults to self.TAGSET. |
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.
Undocumented
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
Modify _EVAL_CHUNK to try to keep the amount of time that the eval demon takes between _EVAL_DEMON_MIN and _EVAL_DEMON_MAX.
| Parameters | |
| t | The amount of time that the eval demon took. |
Undocumented
| Value |
|
If the user has not pressed any key for this amount of time (in seconds), and the current grammar has not been evaluated, then the eval demon will evaluate it.
| Value |
|
The maximum amount of time that the eval demon should take each time it runs -- if it takes more than this time, _EVAL_CHUNK will be modified downwards.
| Value |
|
The minimum amount of time that the eval demon should take each time it runs -- if it takes less than this time, _EVAL_CHUNK will be modified upwards.
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
The ChunkScore object that's used to keep track of the score of the current grammar on the development set.