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 (int docID, Index &homeIndex)
 construct a counter for a doc

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

virtual ~RelDocUnigramCounter ()
const char * lexiconID ()

Protected Methods

void countRelDocUnigram (int docID, double weight=1)

Protected Attributes

Indexind

Detailed Description

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


Constructor & Destructor Documentation

RelDocUnigramCounter::RelDocUnigramCounter int    docID,
Index   homeIndex
 

construct a counter for a doc

RelDocUnigramCounter::RelDocUnigramCounter WeightedIDSet   docSet,
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 int    docID,
double    weight = 1
[protected]
 

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

const char* RelDocUnigramCounter::lexiconID   [inline]
 


Member Data Documentation

Index& RelDocUnigramCounter::ind [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 25 11:27:18 2003 for Lemur Toolkit by doxygen1.2.18