Package nltk_lite :: Package tag :: Module unigram
[hide private]
[frames] | no frames]

Module unigram

source code

Classes and interfaces for tagging each token of a document with supplementary information, such as its part of speech or its WordNet synset tag. This task, which is known as tagging, is defined by the TagI interface.

Classes [hide private]
  Unigram
A unigram stochastic tagger.
  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).
  Regexp
A tagger that assigns tags to words based on regular expressions.
  Lookup
A tagger that assigns tags to words based on a lookup table.
Functions [hide private]
 
_demo_tagger(tagger, gold) source code
 
demo()
A simple demonstration function for the Tagger classes.
source code
Function Details [hide private]

demo()

source code 

A simple demonstration function for the Tagger classes. It constructs a backoff tagger using a trigram tagger, bigram tagger unigram tagger and a default tagger. It trains and tests the tagger using the Brown corpus.