For normalizing weights like in Salton/Buckley we need to now all the features in the query or all the features in a document. More...
#include <CQueryNormalizer.h>
Public Member Functions | |
| CQueryNormalizer (const CAcInvertedFile *inAccessor=0) | |
| void | setAccessor (const CAcInvertedFile *inAccessor) |
| virtual void | reset () |
| virtual double | getValue () const |
| Translating the information into a normalizing value in the end. | |
| virtual void | considerQueryFeature (const CWeightingFunction &inFeature) |
| Considers a feature. | |
| virtual CQueryNormalizer * | clone () const |
Protected Attributes | |
| double | mValue |
| const CAcInvertedFile * | mAccessor |
For normalizing weights like in Salton/Buckley we need to now all the features in the query or all the features in a document.
This base class is supposed to handle both.
For getting additional information it needs to know the accessor.