#include <XLingDocModel.hpp>
Inheritance diagram for XLingDocModel:
Public Methods | |
XLingDocModel (DOCID_T docID, const Index *ind, double l, double nt, bool sM=false) | |
Constructor taking optional parameters for smoothing. | |
~XLingDocModel () | |
virtual double | termWeight (TERMID_T termID, const DocInfo *info) const |
Computes term weight for a given term. | |
virtual double | scoreConstant () const |
Protected Attributes | |
const Index * | refIndex |
Index for the collection. | |
double | numTerms |
denominator (number of terms) for background model probability estimate. | |
double | lambda |
smoothing coefficient | |
bool | docBasedSmooth |
Use term frequency (tf/|V|) when false, use term doc frequency (docCount(t)/Sum_w_in_V(docCount(w))) when true for the background model. |
|
Constructor taking optional parameters for smoothing.
|
|
|
|
Unused.
Implements DocumentRep. |
|
Computes term weight for a given term.
Implements DocumentRep. |
|
Use term frequency (tf/|V|) when false, use term doc frequency (docCount(t)/Sum_w_in_V(docCount(w))) when true for the background model.
|
|
smoothing coefficient
|
|
denominator (number of terms) for background model probability estimate.
|
|
Index for the collection.
|