|
Public Member Functions |
| QueryExpander (indri::api::QueryEnvironment *env, indri::api::Parameters ¶m) |
virtual | ~QueryExpander () |
std::vector< indri::api::ScoredExtentResult > | runExpandedQuery (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 |