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

indri::query::RelevanceModel Class Reference

#include <RelevanceModel.hpp>

List of all members.

Public Member Functions

 RelevanceModel (indri::api::QueryEnvironment &environment, const std::string &smoothing,\int maxGrams, int documents)
 ~RelevanceModel ()
void generate (const std::string &query)
void generate (const std::string &query, const std::vector< indri::api::ScoredExtentResult > &results)
const std::vector< indri::api::ScoredExtentResult > & getQueryResults () const
const std::vector< Gram * > & getGrams () const

Private Types

typedef indri::utility::HashTable<
Gram *, GramCounts *, Gram::hash,
Gram::string_comparator
HGram

Private Member Functions

void _countGrams ()
void _scoreGrams ()
void _sortGrams ()
void _extractDocuments ()

Private Attributes

indri::api::QueryEnvironment_environment
int _maxGrams
std::string _smoothing
int _documents
HGram _gramTable
std::vector< indri::api::ScoredExtentResult_results
std::vector< lemur::api::DOCID_T_documentIDs
std::vector< Gram * > _grams
std::vector< indri::api::DocumentVector * > _vectors


Member Typedef Documentation

typedef indri::utility::HashTable< Gram*, GramCounts*, Gram::hash, Gram::string_comparator > indri::query::RelevanceModel::HGram [private]
 


Constructor & Destructor Documentation

indri::query::RelevanceModel::RelevanceModel indri::api::QueryEnvironment environment,
const std::string &  smoothing,
\int  maxGrams,
int  documents
 

indri::query::RelevanceModel::~RelevanceModel  ) 
 


Member Function Documentation

void indri::query::RelevanceModel::_countGrams  )  [private]
 

void indri::query::RelevanceModel::_extractDocuments  )  [private]
 

void indri::query::RelevanceModel::_scoreGrams  )  [private]
 

void indri::query::RelevanceModel::_sortGrams  )  [private]
 

void indri::query::RelevanceModel::generate const std::string &  query,
const std::vector< indri::api::ScoredExtentResult > &  results
 

void indri::query::RelevanceModel::generate const std::string &  query  ) 
 

const std::vector< indri::query::RelevanceModel::Gram * > & indri::query::RelevanceModel::getGrams  )  const
 

const std::vector< indri::api::ScoredExtentResult > & indri::query::RelevanceModel::getQueryResults  )  const
 


Member Data Documentation

std::vector<lemur::api::DOCID_T> indri::query::RelevanceModel::_documentIDs [private]
 

int indri::query::RelevanceModel::_documents [private]
 

indri::api::QueryEnvironment& indri::query::RelevanceModel::_environment [private]
 

std::vector<Gram*> indri::query::RelevanceModel::_grams [private]
 

HGram indri::query::RelevanceModel::_gramTable [private]
 

int indri::query::RelevanceModel::_maxGrams [private]
 

std::vector<indri::api::ScoredExtentResult> indri::query::RelevanceModel::_results [private]
 

std::string indri::query::RelevanceModel::_smoothing [private]
 

std::vector<indri::api::DocumentVector*> indri::query::RelevanceModel::_vectors [private]
 


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