class documentation
class WittenBell(Smoothing): (source)
Constructor: WittenBell(vocabulary, counter, **kwargs)
Witten-Bell smoothing.
Method | __init__ |
No summary |
Method | alpha |
Undocumented |
Method | unigram |
Undocumented |
Method | _gamma |
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. |
**kwargs | Undocumented |