When building an inverted file by successive merging we need first to create a file containing triplets of FeatureID, DocumentID and DocumentFrequency. More...
#include <CIFBuilderTriplet.h>
Public Member Functions | |
CIFBuilderTriplet () | |
the default constructor | |
CIFBuilderTriplet (TID inFeatureID, TID inDocumentID, float inDocumentFrequency) | |
convenience constructor | |
bool | isIdentical (const CIFBuilderTriplet &inTriplet) const |
testing if all fields are equal |
Public Attributes | |
int | mFeatureID |
the feature id of this feature | |
int | mDocumentID |
the document id of the document containing this feature | |
float | mDocumentFrequency |
the frequency of the feature within the document |
When building an inverted file by successive merging we need first to create a file containing triplets of FeatureID, DocumentID and DocumentFrequency.
These elements need to be sorted by FeatureID and inverse Document Frequency.