class documentation

Kneser-Ney Smoothing.

Method __init__ No summary
Method alpha_gamma Undocumented
Method unigram_score Undocumented
Instance Variable discount Undocumented

Inherited from Smoothing:

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

Undocumented

def unigram_score(self, word): (source)

Undocumented

discount = (source)

Undocumented