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

RetrievalMethod Class Reference

#include <RetrievalMethod.hpp>

Inheritance diagram for RetrievalMethod:

StructQueryRetMethod TextQueryRetMethod InQueryRetMethod CORIRetMethod CosSimRetMethod OkapiRetMethod SimpleKLRetMethod TFIDFRetMethod List of all members.

Public Methods

 RetrievalMethod (Index &collectionIndex)
virtual ~RetrievalMethod ()
virtual QueryRepcomputeQueryRep (Query &qry)=0
 compute the representation for a query, semantics defined by subclass

virtual double scoreDoc (QueryRep &qry, int docID)=0
 Score a document identified by the id w.r.t. a query rep.

virtual void scoreDocSet (QueryRep &qry, DocIDSet &docSet, IndexedRealVector &results)
 Score a set of documents w.r.t. a query rep (e.g. for re-ranking).

virtual void scoreCollection (QueryRep &qry, IndexedRealVector &results)
 Score all documents in the collection.

virtual void updateQuery (QueryRep &qryRep, DocIDSet &relDocs)=0
 update the query, feedback support


Protected Attributes

Indexind

Detailed Description

A retrieval method is determined by specifying the following elements


Constructor & Destructor Documentation

RetrievalMethod::RetrievalMethod Index   collectionIndex [inline]
 

virtual RetrievalMethod::~RetrievalMethod   [inline, virtual]
 


Member Function Documentation

virtual QueryRep* RetrievalMethod::computeQueryRep Query   qry [pure virtual]
 

compute the representation for a query, semantics defined by subclass

Implemented in StructQueryRetMethod, and TextQueryRetMethod.

void RetrievalMethod::scoreCollection QueryRep   qry,
IndexedRealVector   results
[virtual]
 

Score all documents in the collection.

The default implementation provided by this class is to call function scoreDoc, thus to score documents one by one. This is inefficient, so usually a subclass should override this method if a more efficient scoring, e.g., based on inverted index, is possible.

Reimplemented in CORIRetMethod, StructQueryRetMethod, and TextQueryRetMethod.

virtual double RetrievalMethod::scoreDoc QueryRep   qry,
int    docID
[pure virtual]
 

Score a document identified by the id w.r.t. a query rep.

Implemented in StructQueryRetMethod, and TextQueryRetMethod.

void RetrievalMethod::scoreDocSet QueryRep   qry,
DocIDSet   docSet,
IndexedRealVector   results
[virtual]
 

Score a set of documents w.r.t. a query rep (e.g. for re-ranking).

The default implementation provided by this class is to call function scoreDoc

virtual void RetrievalMethod::updateQuery QueryRep   qryRep,
DocIDSet   relDocs
[pure virtual]
 

update the query, feedback support

Implemented in StructQueryRetMethod, and TextQueryRetMethod.


Member Data Documentation

Index& RetrievalMethod::ind [protected]
 


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