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

indri::query::QueryExpander Class Reference

#include <QueryExpander.hpp>

Inheritance diagram for indri::query::QueryExpander:

indri::query::PonteExpander indri::query::RMExpander indri::query::TFIDFExpander List of all members.

Public Member Functions

 QueryExpander (indri::api::QueryEnvironment *env, indri::api::Parameters &param)
virtual ~QueryExpander ()
std::vector< indri::api::ScoredExtentResultrunExpandedQuery (std::string originalQuery, int resultsRequested, bool verbose=false)
virtual std::string expand (std::string originalQuery, std::vector< indri::api::ScoredExtentResult > &results)=0

Protected Member Functions

std::vector< indri::api::DocumentVector * > getDocumentVectors (std::vector< indri::api::ScoredExtentResult > &results, int rmDocs)
std::vector< std::string > * getVocabulary (std::vector< indri::api::ScoredExtentResult > &results, int rmDocs)
std::vector< std::string > * getVocabulary (std::vector< indri::api::DocumentVector * > &docVectors)
std::string buildQuery (const std::string &originalQuery, double originalWeight, const std::vector< std::pair< std::string, double > > &expansionTerms, int termCount)
UINT64 getCF (const std::string &term)

Protected Attributes

indri::api::QueryEnvironment_env
indri::api::Parameters _param
std::map< std::string, bool > _stopwords

Private Attributes

std::map< std::string, UINT64_cf_cache

Constructor & Destructor Documentation

indri::query::QueryExpander::QueryExpander indri::api::QueryEnvironment env,
indri::api::Parameters param
 

virtual indri::query::QueryExpander::~QueryExpander  )  [inline, virtual]
 


Member Function Documentation

std::string indri::query::QueryExpander::buildQuery const std::string &  originalQuery,
double  originalWeight,
const std::vector< std::pair< std::string, double > > &  expansionTerms,
int  termCount
[protected]
 

virtual std::string indri::query::QueryExpander::expand std::string  originalQuery,
std::vector< indri::api::ScoredExtentResult > &  results
[pure virtual]
 

Implemented in indri::query::PonteExpander, indri::query::RMExpander, and indri::query::TFIDFExpander.

UINT64 indri::query::QueryExpander::getCF const std::string &  term  )  [protected]
 

std::vector< indri::api::DocumentVector * > indri::query::QueryExpander::getDocumentVectors std::vector< indri::api::ScoredExtentResult > &  results,
int  rmDocs
[protected]
 

std::vector< std::string > * indri::query::QueryExpander::getVocabulary std::vector< indri::api::DocumentVector * > &  docVectors  )  [protected]
 

std::vector< std::string > * indri::query::QueryExpander::getVocabulary std::vector< indri::api::ScoredExtentResult > &  results,
int  rmDocs
[protected]
 

std::vector< indri::api::ScoredExtentResult > indri::query::QueryExpander::runExpandedQuery std::string  originalQuery,
int  resultsRequested,
bool  verbose = false
 


Member Data Documentation

std::map<std::string, UINT64> indri::query::QueryExpander::_cf_cache [private]
 

indri::api::QueryEnvironment* indri::query::QueryExpander::_env [protected]
 

indri::api::Parameters indri::query::QueryExpander::_param [protected]
 

std::map< std::string, bool > indri::query::QueryExpander::_stopwords [protected]
 


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