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

lemur::retrieval::XLingQueryModel Class Reference

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

#include <XLingRetMethod.hpp>

Inheritance diagram for lemur::retrieval::XLingQueryModel:

lemur::api::QueryRep List of all members.

Public Member Functions

 XLingQueryModel (const lemur::api::TermQuery &qry, const lemur::api::Index &source, bool dbS, double numSource, lemur::dictionary::PDict &dict, const lemur::api::Stopper *stp=NULL, lemur::api::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

Private Attributes

vector< XLQueryTermqTerms
vector< XLQueryTerm >::iterator iter
int numTerms

Detailed Description

Query model representation for the cross lingual retrieval model.


Constructor & Destructor Documentation

lemur::retrieval::XLingQueryModel::XLingQueryModel const lemur::api::TermQuery qry,
const lemur::api::Index source,
bool  dbS,
double  numSource,
lemur::dictionary::PDict dict,
const lemur::api::Stopper stp = NULL,
lemur::api::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 lemur::retrieval::XLingQueryModel::~XLingQueryModel  )  [inline, virtual]
 


Member Function Documentation

virtual int lemur::retrieval::XLingQueryModel::getNumTerms  )  const [inline, virtual]
 

virtual bool lemur::retrieval::XLingQueryModel::hasMore  )  const [inline, virtual]
 

Does the query have more terms?

virtual XLQueryTerm& lemur::retrieval::XLingQueryModel::nextTerm  )  const [inline, virtual]
 

Get next XLQueryTerm from the query.

virtual void lemur::retrieval::XLingQueryModel::startIteration  )  const [inline, virtual]
 

Begin iteration over the XLQueryTerms.


Member Data Documentation

vector<XLQueryTerm>::iterator lemur::retrieval::XLingQueryModel::iter [mutable, private]
 

int lemur::retrieval::XLingQueryModel::numTerms [private]
 

vector<XLQueryTerm> lemur::retrieval::XLingQueryModel::qTerms [mutable, private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:07 2010 for Lemur by doxygen 1.3.4