WeightTFIDF< T > Class Template Reference

The Weight class for TFIDF. More...

List of all members.

Public Member Functions

 WeightTFIDF (ElementList< Word > *wordList, DocumentList *documentList)
 Initialise the class with the word and document statistics.
 WeightTFIDF (void)
 Create an uninitialised class.
void assignLists (ElementList< Word > *wordList, DocumentList *documentList)
 Provide the class with a new set of word and document statistics.
virtual void documentWeightValue (T *triple, Word *word)
 Compute the document weight, given the triple and word.
void termWeightValue (T *triple, Word *word)
 Compute the term weight of the triple.
void assignTermWeightCW (Word *word)
 Compute the simple term weight and assign it to word.
void noWeightValue (T *triple)
 Store the triple values, without weighting.
void noWeightValue (float frequency, int position)
 Store the given values without weighting (used if we have no triple).
void assignTermWeight (Word *word)
 Compute the term weight and assign it to word.
bool operator< (WeightTFIDF &triple)
 Compare frequencies of WeightBM25 classes.
void operator*= (float mult)
 Multiply frequency by mult.
void operator= (WeightTFIDF< T > &element)
 Assign the values from element to this object.
int position (void)
 Return the position value.
float value (void)
 Return the value value.
int index (void)
 Return the index value.

Protected Member Functions

float documentTermWeight (T *triple)
 Compute the document weight for the given triple.

Protected Attributes

ElementList< Word > * _wordList
 The precomputed wordList containing word statistics.
DocumentList_documentList
 The precomputed documentList containing document statistics.
float _frequency
 The weighted frequency.
int _position
 The triple position.
int _index
 The triple index.

Detailed Description

template<typename T>
class WeightTFIDF< T >

The Weight class for TFIDF.

This class defines the operations needed to perform TFIDF weighting when computing document scores for a given query.

Author
lapark
Revision
1.3.2.1
Date
2009/11/02 14:47:56
Id
WeightTFIDF.tcc,v 1.3.2.1 2009/11/02 14:47:56 lapark Exp

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:19 2009 for textIR by  doxygen 1.6.1