Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
reranker::ExecutiveFeatureExtractor Class Referenceabstract

This class is like a regular FeatureExtractor, but has been promoted to the executive level and thus wears fancypants. More...

#include <executive-feature-extractor.H>

Inheritance diagram for reranker::ExecutiveFeatureExtractor:
reranker::FactoryConstructible reranker::ExecutiveFeatureExtractorImpl

Public Member Functions

 ExecutiveFeatureExtractor ()
 Constructs a new intance. More...
 
virtual ~ExecutiveFeatureExtractor ()
 Destroys this instance. More...
 
virtual void Reset () const =0
 Indictes to this instance that iteration has been reset. More...
 
virtual void Extract (CandidateSet &candidate_set) const =0
 Extracts features for the specified CandidateSet using the suite of FeatureExtractor instances specified at construction time. More...
 
- Public Member Functions inherited from reranker::FactoryConstructible
virtual ~FactoryConstructible ()
 
virtual void RegisterInitializers (Initializers &initializers)
 
virtual void Init (const Environment *env, const string &arg)
 

Static Public Member Functions

static shared_ptr
< ExecutiveFeatureExtractor
InitFromSpec (const string &filename)
 A convenience factory method that uses an internal Factory<ExecutiveFeatureExtractor> instance to construct an ExecutiveFeatureExtractor instance using the spec string contained in the specified file. More...
 

Detailed Description

This class is like a regular FeatureExtractor, but has been promoted to the executive level and thus wears fancypants.

More specifically, this class executes the extraction of a suite of feature extractors, specified at run-time via a Factory specification string.

See Also
reranker::Interpreter

Definition at line 66 of file executive-feature-extractor.H.

Constructor & Destructor Documentation

reranker::ExecutiveFeatureExtractor::ExecutiveFeatureExtractor ( )
inline

Constructs a new intance.

Definition at line 69 of file executive-feature-extractor.H.

virtual reranker::ExecutiveFeatureExtractor::~ExecutiveFeatureExtractor ( )
inlinevirtual

Destroys this instance.

Definition at line 71 of file executive-feature-extractor.H.

Member Function Documentation

virtual void reranker::ExecutiveFeatureExtractor::Extract ( CandidateSet candidate_set) const
pure virtual

Extracts features for the specified CandidateSet using the suite of FeatureExtractor instances specified at construction time.

Parameters
candidate_setthe CandidateSet for which to extract features
shared_ptr< ExecutiveFeatureExtractor > reranker::ExecutiveFeatureExtractor::InitFromSpec ( const string &  filename)
static

A convenience factory method that uses an internal Factory<ExecutiveFeatureExtractor> instance to construct an ExecutiveFeatureExtractor instance using the spec string contained in the specified file.

Definition at line 68 of file executive-feature-extractor.C.

virtual void reranker::ExecutiveFeatureExtractor::Reset ( ) const
pure virtual

Indictes to this instance that iteration has been reset.

This is especially important for file-backed feature extractors.

See Also
FeatureExtractor::Reset

The documentation for this class was generated from the following files: