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

lemur::langmod::DirichletUnigramLM Class Reference

Dirichlet prior smoothing. More...

#include <UnigramLM.hpp>

Inheritance diagram for lemur::langmod::DirichletUnigramLM:

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

Public Member Functions

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

Private Attributes

const UnigramLMref
double s
 prior sample size

Detailed Description

Dirichlet prior smoothing.

Constructor & Destructor Documentation

lemur::langmod::DirichletUnigramLM::DirichletUnigramLM const lemur::utility::Counter counter,
const string &  lexiconID,
const UnigramLM refLM,
double  priorSampleSize

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

Member Function Documentation

virtual double lemur::langmod::DirichletUnigramLM::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

const UnigramLM* lemur::langmod::DirichletUnigramLM::ref [private]

double lemur::langmod::DirichletUnigramLM::s [private]

prior sample size

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