class documentation

Witten-Bell smoothing.

Method __init__ No summary
Method alpha_gamma Undocumented
Method unigram_score Undocumented
Method _gamma Undocumented

Inherited from Smoothing:

Instance Variable counts Undocumented
Instance Variable vocab Undocumented
def __init__(self, vocabulary, counter, **kwargs): (source)
Parameters
vocabulary:nltk.lm.vocab.VocabularyThe Ngram vocabulary object.
counter:nltk.lm.counter.NgramCounterThe counts of the vocabulary items.
**kwargsUndocumented
def alpha_gamma(self, word, context): (source)

Undocumented

def unigram_score(self, word): (source)

Undocumented

def _gamma(self, context): (source)

Undocumented