#include <UnigramLM.hpp>
Inheritance diagram for SmoothedMLEstimator:
Public Methods | |
SmoothedMLEstimator (Counter &counter,const char *lexiconID) | |
virtual | ~SmoothedMLEstimator () |
virtual double | prob (int wordIndex) |
return p(w). | |
virtual void | startIteration () |
iteration over non-zero probability entries. | |
virtual bool | hasMore () |
virtual void | nextWordProb (int &wordIndex,double &prob) |
virtual const char* | lexiconID () |
return a string ID of the lexicon on which the word index should be interpreted. | |
virtual double | probEstimate (int wordIndex,double wdCount,double sumCount)=0 |
individual model differs in its implementation of probEstimate() method. | |
Protected Attributes | |
Counter& | ct |
const char* | lexID |
|
|
|
|
|
Reimplemented from UnigramLM. |
|
return a string ID of the lexicon on which the word index should be interpreted.
Reimplemented from UnigramLM. |
|
Reimplemented from UnigramLM. |
|
return p(w).
Reimplemented from UnigramLM. |
|
individual model differs in its implementation of probEstimate() method.
Reimplemented in MLUnigramLM, LaplaceUnigramLM, DirichletUnigramLM, and InterpUnigramLM. |
|
iteration over non-zero probability entries.
Reimplemented from UnigramLM. |
|
|
|
|