Home | Trees | Indices | Help |
|
---|
|
object --+ | yaml.YAMLObject --+ | TagI --+ | SequentialBackoff --+ | Ngram
An n-gram stochastic tagger. Before an
tagger.Ngram
can be used, it should be trained on a tagged
corpus. Using this training data, it will construct a frequency
distribution describing the frequencies with each word is tagged in
different contexts. The context considered consists of the word to be
tagged and the n-1 previous words' tags. Once the tagger has been
trained, it uses this frequency distribution to tag words by assigning
each word the tag with the maximum frequency given its context. If the
tagger.Ngram
encounters a word in a context for which it has
no data, it will assign it the tag None
.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
|
Construct an n-gram stochastic tagger. The tagger must be trained using the train() method before being used to tag data.
|
Train this
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:31 2007 | http://epydoc.sourceforge.net |