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

InQueryRetMethod Class Reference

#include <InQueryRetMethod.hpp>

Inheritance diagram for InQueryRetMethod:

StructQueryRetMethod RetrievalMethod List of all members.

Public Methods

 InQueryRetMethod (Index &dbIndex, double belief, int fbTerms, double fbCoef, bool cacheIDF)
virtual ~InQueryRetMethod ()
virtual StructQueryRepcomputeStructQueryRep (StructQuery &qry)
 compute the query representation for a text query

virtual DocumentRepcomputeDocRep (int docID)
virtual ScoreFunctionscoreFunc ()
 return the scoring function pointer

virtual void updateStructQuery (StructQueryRep &qryRep, DocIDSet &relDocs)

Private Attributes

double * idfV
ScoreFunctionscFunc
double fbCoeff
int fbTermCount
double defaultBelief
int docCount
double docLengthAverage

Detailed Description

The InQuery retrieval method for structured queries. 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.


Constructor & Destructor Documentation

InQueryRetMethod::InQueryRetMethod Index   dbIndex,
double    belief,
int    fbTerms,
double    fbCoef,
bool    cacheIDF
 

virtual InQueryRetMethod::~InQueryRetMethod   [inline, virtual]
 


Member Function Documentation

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

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

Implements StructQueryRetMethod.

virtual StructQueryRep* InQueryRetMethod::computeStructQueryRep StructQuery   qry [inline, virtual]
 

compute the query representation for a text query

Implements StructQueryRetMethod.

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

return the scoring function pointer

Implements StructQueryRetMethod.

void InQueryRetMethod::updateStructQuery StructQueryRep   qryRep,
DocIDSet   relDocs
[virtual]
 

Create new structured query that is a weighted sum of the original query and the terms selected.

Implements StructQueryRetMethod.


Member Data Documentation

double InQueryRetMethod::defaultBelief [private]
 

int InQueryRetMethod::docCount [private]
 

double InQueryRetMethod::docLengthAverage [private]
 

double InQueryRetMethod::fbCoeff [private]
 

int InQueryRetMethod::fbTermCount [private]
 

double* InQueryRetMethod::idfV [private]
 

ScoreFunction* InQueryRetMethod::scFunc [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:01 2004 for LEMUR by doxygen1.2.16