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

Module ngram

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]
  Ngram
An n-gram stochastic tagger.
  Bigram
  Trigram
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.