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]
 

DirichletPriorDocModel::~DirichletPriorDocModel ( ) [inline, virtual]
 


Member Function Documentation

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

p(w|d), w seen.

Reimplemented from SimpleKLDocModel.

double DirichletPriorDocModel::unseenCoeff ( ) [inline, virtual]
 

a(d).

Reimplemented from SimpleKLDocModel.


The documentation for this class was generated from the following file:
Generated at Fri Jul 26 18:22:45 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000