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

lemur::langmod::DocUnigramCounter Class Reference

Counter of unigrams in documents. More...

#include <DocUnigramCounter.hpp>

Inheritance diagram for lemur::langmod::DocUnigramCounter:

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

Public Member Functions

 DocUnigramCounter (lemur::api::DOCID_T docID, const lemur::api::Index &homeIndex)
 construct a counter for a doc

 DocUnigramCounter (const vector< lemur::api::DOCID_T > &docSet, const lemur::api::Index &homeIndex)
 construct a counter for a subset of docs in a collection

 DocUnigramCounter (const lemur::utility::WeightedIDSet &docSet, const lemur::api::Index &homeIndex)
 construct a counter for a subset of weighted docs in a collection

 DocUnigramCounter (const lemur::api::Index &collectionIndex)
 construct a counter for a whole collection of docs

virtual ~DocUnigramCounter ()
const string lexiconID () const

Protected Member Functions

void countDocUnigram (lemur::api::DOCID_T docID, double weight=1)

Protected Attributes

const lemur::api::Indexind

Detailed Description

Counter of unigrams in documents.


Constructor & Destructor Documentation

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

construct a counter for a doc

lemur::langmod::DocUnigramCounter::DocUnigramCounter const vector< lemur::api::DOCID_T > &  docSet,
const lemur::api::Index homeIndex
 

construct a counter for a subset of docs in a collection

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

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

lemur::langmod::DocUnigramCounter::DocUnigramCounter const lemur::api::Index collectionIndex  ) 
 

construct a counter for a whole collection of docs

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


Member Function Documentation

void lemur::langmod::DocUnigramCounter::countDocUnigram lemur::api::DOCID_T  docID,
double  weight = 1
[protected]
 

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


Member Data Documentation

const lemur::api::Index& lemur::langmod::DocUnigramCounter::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