Home | Trees | Indices | Help |
|
---|
|
object --+ | yaml.YAMLObject --+ | TagI --+ | SequentialBackoff --+ | Affix
A unigram tagger that assign tags to tokens based on leading or
trailing substrings (it is important to note that the substrings are not
necessarily "true" morphological affixes). Before
tag.Affix
can be used, it should be trained on a tagged
corpus. Using this training data, it will find the most likely tag for
each word type. It will then use this information to assign the most
frequent tag to each word. If the tag.Affix
encounters a
prefix or suffix in a word for which it has no data, it will assign the
tag None
.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
|
Construct a new affix stochastic tagger. The new tagger should be trained, using the train() method, before it is used to tag data.
|
Train
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:31 2007 | http://epydoc.sourceforge.net |