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

lemur::langmod::RelDocUnigramCounter Class Reference

Unigram counter for documents with in document term probabilities. Used by the relevance model feedback methods. More...

#include <RelDocUnigramCounter.hpp>

Inheritance diagram for lemur::langmod::RelDocUnigramCounter:

lemur::utility::ArrayCounter< double > lemur::utility::ModifiableCounter lemur::utility::Counter List of all members.

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::Indexind

Detailed Description

Unigram counter for documents with in document term probabilities. Used by the relevance model feedback methods.


Constructor & Destructor Documentation

lemur::langmod::RelDocUnigramCounter::RelDocUnigramCounter lemur::api::DOCID_T  docID,
const lemur::api::Index homeIndex
 

construct a counter for a doc

lemur::langmod::RelDocUnigramCounter::RelDocUnigramCounter const lemur::utility::WeightedIDSet docSet,
const lemur::api::Index homeIndex
 

construct a counter for a subset of weighted docs in a collection

virtual lemur::langmod::RelDocUnigramCounter::~RelDocUnigramCounter  )  [inline, virtual]
 


Member Function Documentation

void lemur::langmod::RelDocUnigramCounter::countRelDocUnigram lemur::api::DOCID_T  docID,
double  weight = 1
[protected]
 

Fill in the counter values with the probability of each term in in the document (count/length).

const string lemur::langmod::RelDocUnigramCounter::lexiconID  )  const [inline]
 


Member Data Documentation

const lemur::api::Index& lemur::langmod::RelDocUnigramCounter::ind [protected]
 


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