#include <UnigramLM.hpp>
Inheritance diagram for SmoothedMLEstimator:

Public Methods | |
| SmoothedMLEstimator (const Counter &counter, const string &lexiconID) | |
| virtual | ~SmoothedMLEstimator () |
| virtual double | prob (TERMID_T wordIndex) const |
| return p(w) | |
| virtual void | startIteration () const |
| iteration over non-zero probability entries | |
| virtual bool | hasMore () const |
| virtual void | nextWordProb (TERMID_T &wordIndex, double &prob) const |
| virtual const string | lexiconID () const |
| return a string ID of the lexicon on which the word index should be interpreted | |
| virtual double | probEstimate (TERMID_T wordIndex, double wdCount, double sumCount) const=0 |
| individual model differs in its implementation of probEstimate() method | |
Protected Attributes | |
| const Counter & | ct |
| const string | 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.18