class documentation
class KneserNey(Smoothing): (source)
Constructor: KneserNey(vocabulary, counter, discount, **kwargs)
Kneser-Ney Smoothing.
Method | __init__ |
No summary |
Method | alpha |
Undocumented |
Method | unigram |
Undocumented |
Instance Variable | discount |
Undocumented |
Inherited from Smoothing
:
Instance Variable | counts |
Undocumented |
Instance Variable | vocab |
Undocumented |
overrides
nltk.lm.api.Smoothing.__init__
Parameters | |
vocabulary:nltk.lm.vocab.Vocabulary | The Ngram vocabulary object. |
counter:nltk.lm.counter.NgramCounter | The counts of the vocabulary items. |
discount | Undocumented |
**kwargs | Undocumented |