#include <RelevanceModel.hpp>
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 |
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.4