Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RelDocUnigramCounter Class Reference

#include <RelDocUnigramCounter.hpp>

Inheritance diagram for RelDocUnigramCounter:

ArrayCounter< double > ModifiableCounter Counter List of all members.

Public Methods

 RelDocUnigramCounter (DOCID_T docID, const Index &homeIndex)
 construct a counter for a doc

 RelDocUnigramCounter (const WeightedIDSet &docSet, const Index &homeIndex)
 construct a counter for a subset of weighted docs in a collection

virtual ~RelDocUnigramCounter ()
const string lexiconID () const

Protected Methods

void countRelDocUnigram (DOCID_T docID, double weight=1)

Protected Attributes

const Indexind

Detailed Description

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


Constructor & Destructor Documentation

RelDocUnigramCounter::RelDocUnigramCounter DOCID_T    docID,
const Index   homeIndex
 

construct a counter for a doc

RelDocUnigramCounter::RelDocUnigramCounter const WeightedIDSet   docSet,
const Index   homeIndex
 

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

virtual RelDocUnigramCounter::~RelDocUnigramCounter   [inline, virtual]
 


Member Function Documentation

void RelDocUnigramCounter::countRelDocUnigram 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 RelDocUnigramCounter::lexiconID   const [inline]
 


Member Data Documentation

const Index& RelDocUnigramCounter::ind [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:53 2004 for Lemur Toolkit by doxygen1.2.18