Tanl Linguistic Pipeline |
Interface for feature extractors. More...
#include <FeatureExtractor.h>
Public Member Functions | |
virtual void | extract (Features &features, Item &item)=0 |
Extract features from a given object and add them to features. | |
virtual void | reset () |
Reset to initial state. |
Interface for feature extractors.
virtual void Tanl::Classifier::FeatureExtractor< Features, Item >::reset | ( | ) | [inline, virtual] |
Reset to initial state.
Useful when analyzing several items belonging to different groups with a single extractor: for instance sentences from documents. Some global state maintained by the extractor may need to be cleared.
Reimplemented in Tanl::NER::NerFeatureExtractor, and Tanl::SST::SstFeatureExtractor.