Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
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>
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... | |
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.
Definition at line 66 of file executive-feature-extractor.H.
|
inline |
Constructs a new intance.
Definition at line 69 of file executive-feature-extractor.H.
|
inlinevirtual |
Destroys this instance.
Definition at line 71 of file executive-feature-extractor.H.
|
pure virtual |
Extracts features for the specified CandidateSet using the suite of FeatureExtractor instances specified at construction time.
candidate_set | the CandidateSet for which to extract features |
|
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.
|
pure virtual |
Indictes to this instance that iteration has been reset.
This is especially important for file-backed feature extractors.