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

DirichletPriorDocModel Class Reference

Bayesian smoothing with Dirichlet prior. More...

#include <SimpleKLDocModel.hpp>

Inheritance diagram for DirichletPriorDocModel:

SimpleKLDocModel DocumentRep List of all members.

Public Methods

 DirichletPriorDocModel (int docID, Index *referenceIndex, UnigramLM &collectLM, double *docProbMass, double priorWordCount, SimpleKLParameter::SmoothStrategy smthStrategy=SimpleKLParameter::INTERPOLATE)
virtual ~DirichletPriorDocModel ()
virtual double unseenCoeff ()
 a(d)

virtual double seenProb (double termFreq, int termID)
 p(w|d), w seen


Detailed Description

Bayesian smoothing with Dirichlet prior.

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


Constructor & Destructor Documentation

DirichletPriorDocModel::DirichletPriorDocModel int    docID,
Index   referenceIndex,
UnigramLM   collectLM,
double *    docProbMass,
double    priorWordCount,
SimpleKLParameter::SmoothStrategy    smthStrategy = SimpleKLParameter::INTERPOLATE
[inline]
 

virtual DirichletPriorDocModel::~DirichletPriorDocModel   [inline, virtual]
 


Member Function Documentation

virtual double DirichletPriorDocModel::seenProb double    termFreq,
int    termID
[inline, virtual]
 

p(w|d), w seen

Implements SimpleKLDocModel.

virtual double DirichletPriorDocModel::unseenCoeff   [inline, virtual]
 

a(d)

Implements SimpleKLDocModel.


The documentation for this class was generated from the following file:
Generated on Mon Sep 30 14:13:55 2002 for LEMUR by doxygen1.2.18