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

XLingQueryModel Class Reference

Query model representation for the cross lingual retrieval model. More...

#include <XLingRetMethod.hpp>

Inheritance diagram for XLingQueryModel:

QueryRep List of all members.

Public Methods

 XLingQueryModel (const TermQuery &qry, const Index &source, bool dbS, double numSource, PDict &dict, const Stopper *stp=NULL, Stemmer *stm=NULL)
 construct a query model based on query text in the source language.

virtual ~XLingQueryModel ()
virtual void startIteration () const
 Begin iteration over the XLQueryTerms.

virtual bool hasMore () const
 Does the query have more terms?

virtual XLQueryTermnextTerm () const
 Get next XLQueryTerm from the query.

virtual int getNumTerms () const

Detailed Description

Query model representation for the cross lingual retrieval model.


Constructor & Destructor Documentation

XLingQueryModel::XLingQueryModel const TermQuery   qry,
const Index   source,
bool    dbS,
double    numSource,
PDict   dict,
const Stopper   stp = NULL,
Stemmer   stm = NULL
[inline]
 

construct a query model based on query text in the source language.

Parameters:
qry  the TextQuery in the source language.
source  the Index for the source language collection.
dbS  whether or not to use document frequency based smoothing.
numSource  the number of terms in the source language collection.
dict  the translation dictionary to use.
stp  optional Stopper for source language terms.
stm  optional Stemmer for source language terms.

virtual XLingQueryModel::~XLingQueryModel   [inline, virtual]
 


Member Function Documentation

virtual int XLingQueryModel::getNumTerms   const [inline, virtual]
 

virtual bool XLingQueryModel::hasMore   const [inline, virtual]
 

Does the query have more terms?

virtual XLQueryTerm& XLingQueryModel::nextTerm   const [inline, virtual]
 

Get next XLQueryTerm from the query.

virtual void XLingQueryModel::startIteration   const [inline, virtual]
 

Begin iteration over the XLQueryTerms.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 13:00:02 2004 for Lemur Toolkit by doxygen1.2.18