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

lemur::retrieval::XLQueryTerm Class Reference

Query term for cross-lingual retrieval queries. More...

#include <XLingRetMethod.hpp>

Inheritance diagram for lemur::retrieval::XLQueryTerm:

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

Public Member Functions

 XLQueryTerm (lemur::api::TERMID_T tid, double wt, const char *term, double pge, lemur::dictionary::PDict &dic, lemur::api::Stemmer *stm=NULL)
 XLQueryTerm (const char *term, lemur::dictionary::PDict &dic, lemur::api::Stemmer *stm=NULL)
 XLQueryTerm (const XLQueryTerm &other)
virtual ~XLQueryTerm ()
const string & getSource () const
 accessor for source term

const double getP_s_GE () const
 P(s|GE).

void setWeight (double wt)
 update weight for this entry.

void incWeight (double wt)
 update weight for this entry.

virtual bool operator== (const XLQueryTerm &other) const
 equality on the source string.

virtual XLQueryTermoperator= (const XLQueryTerm &other)
 equality on the source string.

lemur::dictionary::DictEntryVectorgetTranslations () const

Private Attributes

string source
double p_s_ge
lemur::dictionary::PDictdict
lemur::api::Stemmerstemmer

Detailed Description

Query term for cross-lingual retrieval queries.


Constructor & Destructor Documentation

lemur::retrieval::XLQueryTerm::XLQueryTerm lemur::api::TERMID_T  tid,
double  wt,
const char *  term,
double  pge,
lemur::dictionary::PDict dic,
lemur::api::Stemmer stm = NULL
[inline]
 

lemur::retrieval::XLQueryTerm::XLQueryTerm const char *  term,
lemur::dictionary::PDict dic,
lemur::api::Stemmer stm = NULL
[inline]
 

lemur::retrieval::XLQueryTerm::XLQueryTerm const XLQueryTerm other  )  [inline]
 

virtual lemur::retrieval::XLQueryTerm::~XLQueryTerm  )  [inline, virtual]
 


Member Function Documentation

const double lemur::retrieval::XLQueryTerm::getP_s_GE  )  const [inline]
 

P(s|GE).

const string& lemur::retrieval::XLQueryTerm::getSource  )  const [inline]
 

accessor for source term

lemur::dictionary::DictEntryVector* lemur::retrieval::XLQueryTerm::getTranslations  )  const [inline]
 

get translations for source term. optionally stems, put others here (transliteration). caller deletes if stemmer is not null and not xlates found, stem and try again.

void lemur::retrieval::XLQueryTerm::incWeight double  wt  )  [inline]
 

update weight for this entry.

virtual XLQueryTerm& lemur::retrieval::XLQueryTerm::operator= const XLQueryTerm other  )  [inline, virtual]
 

equality on the source string.

virtual bool lemur::retrieval::XLQueryTerm::operator== const XLQueryTerm other  )  const [inline, virtual]
 

equality on the source string.

void lemur::retrieval::XLQueryTerm::setWeight double  wt  )  [inline]
 

update weight for this entry.


Member Data Documentation

lemur::dictionary::PDict& lemur::retrieval::XLQueryTerm::dict [private]
 

double lemur::retrieval::XLQueryTerm::p_s_ge [private]
 

string lemur::retrieval::XLQueryTerm::source [private]
 

lemur::api::Stemmer* lemur::retrieval::XLQueryTerm::stemmer [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