Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::langmod::LaplaceUnigramLM Class Reference

Laplace-smoothed unigram language model. More...

#include <UnigramLM.hpp>

Inheritance diagram for lemur::langmod::LaplaceUnigramLM:

lemur::langmod::SmoothedMLEstimator lemur::langmod::UnigramLM List of all members.

Public Member Functions

 LaplaceUnigramLM (const lemur::utility::Counter &counter, const string &lexiconID, double vocabSize)
virtual ~LaplaceUnigramLM ()
virtual double probEstimate (lemur::api::TERMID_T wordIndex, double count, double sum) const
 individual model differs in its implementation of probEstimate() method

Private Attributes

double vocSz

Detailed Description

Laplace-smoothed unigram language model.

Constructor & Destructor Documentation

lemur::langmod::LaplaceUnigramLM::LaplaceUnigramLM const lemur::utility::Counter counter,
const string &  lexiconID,
double  vocabSize

virtual lemur::langmod::LaplaceUnigramLM::~LaplaceUnigramLM  )  [inline, virtual]

Member Function Documentation

virtual double lemur::langmod::LaplaceUnigramLM::probEstimate lemur::api::TERMID_T  wordIndex,
double  count,
double  sum
const [inline, virtual]

individual model differs in its implementation of probEstimate() method

Implements lemur::langmod::SmoothedMLEstimator.

Member Data Documentation

double lemur::langmod::LaplaceUnigramLM::vocSz [private]

The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4