#include <StructQryDocRep.hpp>
Inheritance diagram for StructQryDocRep:

Public Methods | |
| StructQryDocRep (int docID, InvFPIndex &dbIndex, double *idfValue) | |
| New StructQryDocRep for an entire document. | |
| StructQryDocRep (int docID, InvFPIndex &dbIndex, double *idfValue, int bg, int nd) | |
| virtual | ~StructQryDocRep () |
| virtual double | termWeight (int termID, DocInfo *info) |
| Belief score for this term in this document. | |
| virtual double | scoreConstant () |
| return 0. | |
| virtual void | startPassageIteration () |
| virtual bool | hasMorePassage () |
| virtual void | nextPassage () |
| next block of psgSize termids, empty positions == OOV (0); | |
| virtual double | computeIdfScore (double df) |
| virtual double | beliefScore (double df, double idf) |
| compute the belief score for a given term frequency. | |
| virtual double | passageLength () |
| The lenght of the current passage. | |
Public Attributes | |
| int | did |
| the document id. | |
| InvFPIndex & | ind |
| double * | idf |
| int | start |
| start position of a passage | |
| int | end |
| end position of a passage | |
| int | size |
| size used by passages | |
| int | increment |
| passage overlap value. default is size/2. | |
| int | docEnd |
| length of the document. | |
| int | offset |
| record the offset of passage having the maxScore | |
| double | maxScore |
| record the max score of the passages | |
| DocTermsCounter * | docTermFrq |
|
||||||||||||||||
|
New StructQryDocRep for an entire document.
|
|
||||||||||||||||||||||||
|
New StructQryDocRep for a passage from a document beginning at bg and ending and nd. |
|
|
|
|
||||||||||||
|
compute the belief score for a given term frequency.
|
|
|
compute idf for the given document frequency as log((|C|+0.5)/df)/(log(|C|+1) |
|
|
|
|
|
next block of psgSize termids, empty positions == OOV (0);
|
|
|
The lenght of the current passage.
|
|
|
return 0.
Implements DocumentRep. |
|
|
|
|
||||||||||||
|
Belief score for this term in this document.
Implements DocumentRep. |
|
|
the document id.
|
|
|
length of the document.
|
|
|
|
|
|
end position of a passage
|
|
|
|
|
|
passage overlap value. default is size/2.
|
|
|
|
|
|
record the max score of the passages
|
|
|
record the offset of passage having the maxScore
|
|
|
size used by passages
|
|
|
start position of a passage
|
1.2.18