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

Public Methods | |
| StructQryDocRep (int docID, double *idfValue, int docLength, int docCount, double docLengthAverage, double db) | |
| New StructQryDocRep. | |
| virtual | ~StructQryDocRep () |
| no clean up | |
| virtual double | termWeight (int termID, const DocInfo *info) const |
| needed for DocRep interface. | |
| virtual double | termWeight (int 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 | |
| int | did |
| the document id. | |
| int | start |
| start position of a passage | |
| int | end |
| end position of a passage | |
|
||||||||||||||||||||||||||||
|
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 DocumentRep. |
|
|
pass in passage size.
|
|
||||||||||||||||
|
Belief score for this term with this dtf.
|
|
||||||||||||
|
needed for DocRep interface.
Implements DocumentRep. |
|
|
the document id.
|
|
|
end position of a passage
|
|
|
start position of a passage
|
1.2.18