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