Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::retrieval::TFIDFRetMethod Class Reference

The TFIDF retrieval method with a few TF formula options. More...

#include <TFIDFRetMethod.hpp>

Inheritance diagram for lemur::retrieval::TFIDFRetMethod:

lemur::api::TextQueryRetMethod lemur::api::RetrievalMethod List of all members.

Public Member Functions

 TFIDFRetMethod (const lemur::api::Index &dbIndex, lemur::api::ScoreAccumulator &accumulator)
virtual ~TFIDFRetMethod ()
virtual lemur::api::TextQueryRepcomputeTextQueryRep (const lemur::api::TermQuery &qry)
virtual lemur::api::DocumentRepcomputeDocRep (lemur::api::DOCID_T docID)
 compute the doc representation (caller responsible for deleting the memory of the generated new instance)

virtual lemur::api::ScoreFunctionscoreFunc ()
 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::ScoreFunctionscFunc
Parameters
TFIDFParameter::WeightParam qryTFParam
TFIDFParameter::WeightParam docTFParam
TFIDFParameter::FeedbackParam fbParam

Detailed Description

The TFIDF retrieval method with a few TF formula options.


Constructor & Destructor Documentation

lemur::retrieval::TFIDFRetMethod::TFIDFRetMethod const lemur::api::Index dbIndex,
lemur::api::ScoreAccumulator accumulator
 

virtual lemur::retrieval::TFIDFRetMethod::~TFIDFRetMethod  )  [inline, virtual]
 


Member Function Documentation

double lemur::retrieval::TFIDFRetMethod::BM25TF const double  rawTF,
const double  k1,
const double  b,
const double  docLen,
const double  avgDocLen
[inline, static]
 

virtual lemur::api::DocumentRep* lemur::retrieval::TFIDFRetMethod::computeDocRep lemur::api::DOCID_T  docID  )  [inline, virtual]
 

compute the doc representation (caller responsible for deleting the memory of the generated new instance)

Implements lemur::api::TextQueryRetMethod.

virtual lemur::api::TextQueryRep* lemur::retrieval::TFIDFRetMethod::computeTextQueryRep const lemur::api::TermQuery qry  )  [inline, virtual]
 

virtual lemur::api::ScoreFunction* lemur::retrieval::TFIDFRetMethod::scoreFunc  )  [inline, virtual]
 

return the scoring function pointer

Implements lemur::api::TextQueryRetMethod.

void lemur::retrieval::TFIDFRetMethod::setDocTFParam TFIDFParameter::WeightParam docTFWeightParam  )  [inline]
 

void lemur::retrieval::TFIDFRetMethod::setFeedbackParam TFIDFParameter::FeedbackParam feedbackParam  )  [inline]
 

void lemur::retrieval::TFIDFRetMethod::setQueryTFParam TFIDFParameter::WeightParam queryTFWeightParam  )  [inline]
 

virtual void lemur::retrieval::TFIDFRetMethod::updateTextQuery lemur::api::TextQueryRep qryRep,
const lemur::api::DocIDSet relDocs
[virtual]
 


Member Data Documentation

TFIDFParameter::WeightParam lemur::retrieval::TFIDFRetMethod::docTFParam [protected]
 

TFIDFParameter::FeedbackParam lemur::retrieval::TFIDFRetMethod::fbParam [protected]
 

double* lemur::retrieval::TFIDFRetMethod::idfV [protected]
 

TFIDFParameter::WeightParam lemur::retrieval::TFIDFRetMethod::qryTFParam [protected]
 

lemur::api::ScoreFunction* lemur::retrieval::TFIDFRetMethod::scFunc [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4