#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 |
|
||||||||||||
|
|
|
|
|
|
|
Implements UnigramLM. |
|
|
return a string ID of the lexicon on which the word index should be interpreted
Implements UnigramLM. |
|
||||||||||||
|
Implements UnigramLM. |
|
|
return p(w)
Implements UnigramLM. |
|
||||||||||||||||
|
individual model differs in its implementation of probEstimate() method
Implemented in MLUnigramLM, LaplaceUnigramLM, DirichletUnigramLM, and InterpUnigramLM. |
|
|
iteration over non-zero probability entries
Implements UnigramLM. |
|
|
|
|
|
|
1.2.16