class documentation

Ngram Smoothing Interface

Implements Chen & Goodman 1995's idea that all smoothing algorithms have certain features in common. This should ideally allow smoothing algorithms to work both with Backoff and Interpolation.

Method __init__ No summary
Method alpha_gamma Undocumented
Method unigram_score Undocumented
Instance Variable counts Undocumented
Instance Variable vocab Undocumented
def __init__(self, vocabulary, counter): (source)
Parameters
vocabulary:nltk.lm.vocab.VocabularyThe Ngram vocabulary object.
counter:nltk.lm.counter.NgramCounterThe counts of the vocabulary items.
@abstractmethod
def alpha_gamma(self, word, context): (source)
@abstractmethod
def unigram_score(self, word): (source)

Undocumented

Undocumented