Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TFIDFRetMethod Class Reference

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

#include <TFIDFRetMethod.hpp>

Inheritance diagram for TFIDFRetMethod:

TextQueryRetMethod RetrievalMethod List of all members.

Public Methods

 TFIDFRetMethod (Index &dbIndex, ScoreAccumulator &accumulator)
virtual ~TFIDFRetMethod ()
virtual TextQueryRepcomputeTextQueryRep (TextQuery &qry)
 compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)

virtual DocumentRepcomputeDocRep (int docID)
 compute the doc representation (caller responsible for deleting the memory of the generated new instance)

virtual ScoreFunctionscoreFunc ()
 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
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

TFIDFRetMethod::TFIDFRetMethod Index   dbIndex,
ScoreAccumulator   accumulator
 

virtual TFIDFRetMethod::~TFIDFRetMethod   [inline, virtual]
 


Member Function Documentation

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

virtual DocumentRep* TFIDFRetMethod::computeDocRep int    docID [inline, virtual]
 

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

Implements TextQueryRetMethod.

virtual TextQueryRep* TFIDFRetMethod::computeTextQueryRep TextQuery   qry [inline, virtual]
 

compute the query representation for a text query (caller responsible for deleting the memory of the generated new instance)

Implements TextQueryRetMethod.

virtual ScoreFunction* TFIDFRetMethod::scoreFunc   [inline, virtual]
 

return the scoring function pointer

Implements TextQueryRetMethod.

void TFIDFRetMethod::setDocTFParam TFIDFParameter::WeightParam   docTFWeightParam [inline]
 

void TFIDFRetMethod::setFeedbackParam TFIDFParameter::FeedbackParam   feedbackParam [inline]
 

void TFIDFRetMethod::setQueryTFParam TFIDFParameter::WeightParam   queryTFWeightParam [inline]
 

void TFIDFRetMethod::updateTextQuery TextQueryRep   qryRep,
DocIDSet   relDocs
[virtual]
 

Modify/update the query representation based on a set (presumably) relevant documents.

Implements TextQueryRetMethod.


Member Data Documentation

TFIDFParameter::WeightParam TFIDFRetMethod::docTFParam [protected]
 

TFIDFParameter::FeedbackParam TFIDFRetMethod::fbParam [protected]
 

double* TFIDFRetMethod::idfV [protected]
 

TFIDFParameter::WeightParam TFIDFRetMethod::qryTFParam [protected]
 

ScoreFunction* TFIDFRetMethod::scFunc [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 25 11:27:23 2003 for Lemur Toolkit by doxygen1.2.18