#include <TFIDFRetMethod.hpp>
Inheritance diagram for TFIDFRetMethod:
Public Methods | |
TFIDFRetMethod (Index &dbIndex,ScoreAccumulator &accumulator) | |
virtual | ~TFIDFRetMethod () |
virtual TextQueryRep* | computeTextQueryRep (TextQuery &qry) |
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance). | |
virtual DocumentRep* | computeDocRep (int 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,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).
Reimplemented from TextQueryRetMethod. |
|
compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance).
Reimplemented from TextQueryRetMethod. |
|
return the scoring function pointer.
Reimplemented from TextQueryRetMethod. |
|
|
|
|
|
|
|
Modify/update the query representation based on a set (presumably) relevant documents.
Reimplemented from TextQueryRetMethod. |
|
|
|
|
|
|
|
|
|
|