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

lemur::retrieval::DirichletPriorDocModel Class Reference

Bayesian smoothing with Dirichlet prior. More...

#include <SimpleKLDocModel.hpp>

Inheritance diagram for lemur::retrieval::DirichletPriorDocModel:

lemur::retrieval::SimpleKLDocModel lemur::api::DocumentRep List of all members.

Public Member Functions

 DirichletPriorDocModel (lemur::api::DOCID_T docID, int dl, const lemur::langmod::UnigramLM &collectLM, const double *docProbMass, double priorWordCount, SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE)
virtual ~DirichletPriorDocModel ()
virtual double unseenCoeff () const
 a(d)

virtual double seenProb (double termFreq, lemur::api::TERMID_T termID) const
 p(w|d), w seen


Private Attributes

double mu

Detailed Description

Bayesian smoothing with Dirichlet prior.

P(w|d) = (c(w;d)+mu*Pc(w))/(|d|+mu)


Constructor & Destructor Documentation

lemur::retrieval::DirichletPriorDocModel::DirichletPriorDocModel lemur::api::DOCID_T  docID,
int  dl,
const lemur::langmod::UnigramLM collectLM,
const double *  docProbMass,
double  priorWordCount,
SimpleKLParameter::SmoothStrategy  smthStrategy = SimpleKLParameter::INTERPOLATE
[inline]
 

virtual lemur::retrieval::DirichletPriorDocModel::~DirichletPriorDocModel  )  [inline, virtual]
 


Member Function Documentation

virtual double lemur::retrieval::DirichletPriorDocModel::seenProb double  termFreq,
lemur::api::TERMID_T  termID
const [inline, virtual]
 

p(w|d), w seen

Implements lemur::retrieval::SimpleKLDocModel.

virtual double lemur::retrieval::DirichletPriorDocModel::unseenCoeff  )  const [inline, virtual]
 

a(d)

Implements lemur::retrieval::SimpleKLDocModel.


Member Data Documentation

double lemur::retrieval::DirichletPriorDocModel::mu [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