Main Page   Namespace List   Class Hierarchy   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 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

Detailed Description

The TFIDF retrieval method with a few TF formula options.


Constructor & Destructor Documentation

TFIDFRetMethod::TFIDFRetMethod ( Index & dbIndex,
ScoreAccumulator & accumulator )
 

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]
 

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

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

Reimplemented from TextQueryRetMethod.

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).

Reimplemented from TextQueryRetMethod.

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

return the scoring function pointer.

Reimplemented from 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.

Reimplemented from 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 at Fri Jul 26 18:23:01 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000