Tanl Linguistic Pipeline

Tanl::Classifier::FeatureExtractor< Features, Item > Class Template Reference
[Classifier]

Interface for feature extractors. More...

#include <FeatureExtractor.h>

List of all members.

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.

Detailed Description

template<class Features, typename Item>
class Tanl::Classifier::FeatureExtractor< Features, Item >

Interface for feature extractors.


Member Function Documentation

template<class Features, typename Item>
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.