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

OkapiRetMethod Class Reference

The Okapi BM25 retrieval function, as described in their TREC-3 paper. More...

#include <OkapiRetMethod.hpp>

Inheritance diagram for OkapiRetMethod:

TextQueryRetMethod RetrievalMethod List of all members.

Public Methods

 OkapiRetMethod (Index &dbIndex,ScoreAccumulator &accumulator)
virtual ~OkapiRetMethod ()
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 &origRep,DocIDSet &relDocs)
 It's suspected that there is a bug in the implementation of feedback; the performance is not as expected.

void setTFParam (OkapiParameter::TFParam &tfWeightParam)
void setFeedbackParam (OkapiParameter::FeedbackParam &feedbackParam)

Static Public Methods

double RSJWeight (double r,double R,double n,double N)
 Compute the Robertson Spark Jones Weight.


Protected Attributes

OkapiScoreFuncscFunc
OkapiParameter::TFParam tfParam
OkapiParameter::FeedbackParam fbParam

Detailed Description

The Okapi BM25 retrieval function, as described in their TREC-3 paper.


Constructor & Destructor Documentation

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

OkapiRetMethod::~OkapiRetMethod ( ) [inline, virtual]
 


Member Function Documentation

double OkapiRetMethod::RSJWeight ( double r,
double R,
double n,
double N ) [inline, static]
 

Compute the Robertson Spark Jones Weight.

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

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

Reimplemented from TextQueryRetMethod.

TextQueryRep * OkapiRetMethod::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 * OkapiRetMethod::scoreFunc ( ) [inline, virtual]
 

return the scoring function pointer.

Reimplemented from TextQueryRetMethod.

void OkapiRetMethod::setFeedbackParam ( OkapiParameter::FeedbackParam & feedbackParam ) [inline]
 

void OkapiRetMethod::setTFParam ( OkapiParameter::TFParam & tfWeightParam ) [inline]
 

void OkapiRetMethod::updateTextQuery ( TextQueryRep & origRep,
DocIDSet & relDocs ) [virtual]
 

It's suspected that there is a bug in the implementation of feedback; the performance is not as expected.

Reimplemented from TextQueryRetMethod.


Member Data Documentation

OkapiParameter::FeedbackParam OkapiRetMethod::fbParam [protected]
 

OkapiScoreFunc * OkapiRetMethod::scFunc [protected]
 

OkapiParameter::TFParam OkapiRetMethod::tfParam [protected]
 


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:22:54 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000