| Trees | Indices | Help |
|
|---|
|
|
object --+
|
tagger.Tagger --+
|
models.ModelTagger --+
|
CandcTagger
Superclass of both kinds of C&C tagger. Don't use this: use one of the subclasses below.
|
|||
|
MODEL_CLASS This is really a fake: it doesn't actually save models itself, since we hand over to the C&C tagger to do that. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
COMPATIBLE_FORMALISMS =
|
|||
INPUT_TYPES = List of allowed input datatypes. |
|||
TAG_BATCH_RATIO = 0.8
|
|||
DEFAULT_UNSEEN_TAG_PROB = 0.001
|
|||
TAGGER_OPTIONS = [ModuleOption('batch', filter= float, help_teTagger-specific options. |
|||
|
Inherited from |
|||
|
|||
|
input_length Returns the number of words (chords) in the input. |
|||
|
Inherited from Inherited from |
|||
|
|||
The tagger must have reference to the grammar being used to parse the input. It must also be given the full input when instantiated. The format of this input will depend on the tagger: for example, it might be a string or a MIDI file.
|
Returns the number of words (chords) in the input.
|
Returns the input word at this index. This does not need to be a string, but must have a sensible __str__, so that it can be converted to a readable string. The purpose of this is to provide a readable form of the input for the parser to store in derivation traces.
|
|
|||
COMPATIBLE_FORMALISMS
|
TAGGER_OPTIONSTagger-specific options. List of ModuleOptions.
|
|
|||
input_lengthReturns the number of words (chords) in the input.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:58 2012 | http://epydoc.sourceforge.net |