#include <TFIDFRetMethod.hpp>
Inheritance diagram for lemur::retrieval::TFIDFRetMethod:
Public Member Functions | |
TFIDFRetMethod (const lemur::api::Index &dbIndex, lemur::api::ScoreAccumulator &accumulator) | |
virtual | ~TFIDFRetMethod () |
virtual lemur::api::TextQueryRep * | computeTextQueryRep (const lemur::api::TermQuery &qry) |
virtual lemur::api::DocumentRep * | computeDocRep (lemur::api::DOCID_T docID) |
compute the doc representation (caller responsible for deleting the memory of the generated new instance) | |
virtual lemur::api::ScoreFunction * | scoreFunc () |
return the scoring function pointer | |
virtual void | updateTextQuery (lemur::api::TextQueryRep &qryRep, const lemur::api::DocIDSet &relDocs) |
void | setDocTFParam (TFIDFParameter::WeightParam &docTFWeightParam) |
void | setQueryTFParam (TFIDFParameter::WeightParam &queryTFWeightParam) |
void | setFeedbackParam (TFIDFParameter::FeedbackParam &feedbackParam) |
Static Public Member Functions | |
double | BM25TF (const double rawTF, const double k1, const double b, const double docLen, const double avgDocLen) |
Protected Attributes | |
double * | idfV |
lemur::api::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 lemur::api::TextQueryRetMethod. |
|
|
|
return the scoring function pointer
Implements lemur::api::TextQueryRetMethod. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|