#include <InQueryRetMethod.hpp>
Inheritance diagram for lemur::retrieval::InQueryRetMethod:
Public Member Functions | |
InQueryRetMethod (const lemur::api::Index &dbIndex, double belief, int fbTerms, double fbCoef, bool cacheIDF) | |
virtual | ~InQueryRetMethod () |
virtual StructQueryRep * | computeStructQueryRep (const lemur::api::TermQuery &qry) |
virtual lemur::api::DocumentRep * | computeDocRep (lemur::api::DOCID_T docID) |
virtual lemur::api::ScoreFunction * | scoreFunc () |
return the scoring function pointer | |
virtual void | updateStructQuery (StructQueryRep &qryRep, const lemur::api::DocIDSet &relDocs) |
Private Attributes | |
double * | idfV |
lemur::api::ScoreFunction * | scFunc |
double | fbCoeff |
int | fbTermCount |
double | defaultBelief |
int | docCount |
double | docLengthAverage |
Implements the InQuery formulation of idf weighting and default belief value. Behavior can be modified by adjusting that value using the defaultBelief parameter. Provides feedback support in the same fashion as the LEMUR TFIDF method.
|
|
|
|
|
compute the doc representation (caller responsible for deleting the memory of the generated new instance) Implements lemur::api::StructQueryRetMethod. |
|
|
|
return the scoring function pointer
Implements lemur::api::StructQueryRetMethod. |
|
Create new structured query that is a weighted sum of the original query and the terms selected. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|