#include <TFIDFRetMethod.hpp>
Inheritance diagram for TFIDFRetMethod:
Public Methods | |
TFIDFRetMethod (const Index &dbIndex, ScoreAccumulator &accumulator) | |
virtual | ~TFIDFRetMethod () |
virtual TextQueryRep * | computeTextQueryRep (const TermQuery &qry) |
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance) | |
virtual DocumentRep * | computeDocRep (DOCID_T docID) |
compute the doc representation (caller responsible for deleting the memory of the generated new instance) | |
virtual ScoreFunction * | scoreFunc () |
return the scoring function pointer | |
virtual void | updateTextQuery (TextQueryRep &qryRep, const DocIDSet &relDocs) |
Modify/update the query representation based on a set (presumably) relevant documents. | |
void | setDocTFParam (TFIDFParameter::WeightParam &docTFWeightParam) |
void | setQueryTFParam (TFIDFParameter::WeightParam &queryTFWeightParam) |
void | setFeedbackParam (TFIDFParameter::FeedbackParam &feedbackParam) |
Static Public Methods | |
double | BM25TF (const double rawTF, const double k1, const double b, const double docLen, const double avgDocLen) |
Protected Attributes | |
double * | idfV |
ScoreFunction * | scFunc |
Parameters | |
TFIDFParameter::WeightParam | qryTFParam |
TFIDFParameter::WeightParam | docTFParam |
TFIDFParameter::FeedbackParam | fbParam |
|
|
|
|
|
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance)
Implements TextQueryRetMethod. |
|
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)
Implements TextQueryRetMethod. |
|
return the scoring function pointer
Implements TextQueryRetMethod. |
|
|
|
|
|
|
|
Modify/update the query representation based on a set (presumably) relevant documents.
Implements TextQueryRetMethod. |
|
|
|
|
|
|
|
|
|
|