#include <StructQryDocRep.hpp>
Inheritance diagram for lemur::retrieval::StructQryDocRep:
Public Member Functions | |
StructQryDocRep (lemur::api::DOCID_T docID, double *idfValue, int docLength, int docCount, double docLengthAverage, double db) | |
New StructQryDocRep. | |
virtual | ~StructQryDocRep () |
no clean up | |
virtual double | termWeight (lemur::api::TERMID_T termID, const lemur::api::DocInfo *info) const |
needed for DocRep interface. | |
virtual double | termWeight (lemur::api::TERMID_T termID, double dtf, int df) const |
Belief score for this term with this dtf. | |
virtual double | scoreConstant () const |
needed for DocRep interface. | |
void | startPassageIteration (int sz) const |
pass in passage size. | |
bool | hasMorePassage () const |
any passages left? | |
void | nextPassage () const |
next block of psgSize termids, empty positions == OOV (0); | |
double | computeIdfScore (double df) const |
double | beliefScore (double df, double idf) const |
compute the belief score for a given tf/idf. | |
Public Attributes | |
lemur::api::DOCID_T | did |
the document id. | |
int | start |
start position of a passage | |
int | end |
end position of a passage | |
Private Attributes | |
double * | idf |
cached term idf values. May be NULL. | |
int | size |
size used by passages | |
int | increment |
passage overlap value. default is size/2. | |
int | docEnd |
length of the document. | |
double | dla |
average document length | |
double | numer |
terms in idf formula | |
double | denom |
terms in idf formula | |
double | defaultBelief |
default belief and 1 - dB. | |
double | oneMinusDB |
default belief and 1 - dB. |
|
New StructQryDocRep.
|
|
no clean up
|
|
compute the belief score for a given tf/idf.
|
|
compute idf for the given document frequency as log((|C|+0.5)/df)/(log(|C|+1) |
|
any passages left?
|
|
next block of psgSize termids, empty positions == OOV (0);
|
|
needed for DocRep interface.
Implements lemur::api::DocumentRep. |
|
pass in passage size.
|
|
Belief score for this term with this dtf.
|
|
needed for DocRep interface.
|
|
default belief and 1 - dB.
|
|
terms in idf formula
|
|
the document id.
|
|
average document length
|
|
length of the document.
|
|
end position of a passage
|
|
cached term idf values. May be NULL.
|
|
passage overlap value. default is size/2.
|
|
terms in idf formula
|
|
default belief and 1 - dB.
|
|
size used by passages
|
|
start position of a passage
|