#include <UnigramLM.hpp>
Inheritance diagram for lemur::langmod::UnigramLM:

Public Member Functions | |
| virtual double | prob (lemur::api::TERMID_T wordIndex) const =0 |
| return p(w) | |
| virtual const string | lexiconID () const =0 |
| return a string ID of the lexicon on which the word index should be interpreted | |
| virtual void | startIteration () const =0 |
| iteration over non-zero probability entries | |
| virtual bool | hasMore () const =0 |
| virtual void | nextWordProb (lemur::api::TERMID_T &wordIndex, double &prob) const =0 |
The index range ([0,N]) is assumed to be defined by the lexicon. The caller is responsible for boundary check if necessary. Any undefined index would have a zero probability.
|
|
Implemented in lemur::langmod::SmoothedMLEstimator. |
|
|
return a string ID of the lexicon on which the word index should be interpreted
Implemented in lemur::langmod::SmoothedMLEstimator. |
|
||||||||||||
|
Implemented in lemur::langmod::SmoothedMLEstimator. |
|
|
return p(w)
Implemented in lemur::langmod::SmoothedMLEstimator. |
|
|
iteration over non-zero probability entries
Implemented in lemur::langmod::SmoothedMLEstimator. |
1.3.4