#include <RelDocUnigramCounter.hpp>
Inheritance diagram for lemur::langmod::RelDocUnigramCounter:
Public Member Functions | |
RelDocUnigramCounter (lemur::api::DOCID_T docID, const lemur::api::Index &homeIndex) | |
construct a counter for a doc | |
RelDocUnigramCounter (const lemur::utility::WeightedIDSet &docSet, const lemur::api::Index &homeIndex) | |
construct a counter for a subset of weighted docs in a collection | |
virtual | ~RelDocUnigramCounter () |
const string | lexiconID () const |
Protected Member Functions | |
void | countRelDocUnigram (lemur::api::DOCID_T docID, double weight=1) |
Protected Attributes | |
const lemur::api::Index & | ind |
|
construct a counter for a doc
|
|
construct a counter for a subset of weighted docs in a collection
|
|
|
|
Fill in the counter values with the probability of each term in in the document (count/length). |
|
|
|
|