70 ifstream is(filename.c_str());
76 ExecutiveFeatureExtractorImpl::Reset()
const {
77 for (vector<shared_ptr<FeatureExtractor> >::const_iterator it =
79 it != extractors_.end();
86 ExecutiveFeatureExtractorImpl::Extract(CandidateSet &candidate_set)
const {
87 for (vector<shared_ptr<FeatureExtractor> >::const_iterator it =
89 it != extractors_.end();
91 (*it)->Extract(candidate_set);
Provides the reranker::Candidate class for representing a candidate hypothesis from an initial model...
A simple class for tokenizing a stream of tokens for the formally specified language used to construc...
Factory for dynamically created instance of the specified type.
Provides the StreamTokenizer class.
shared_ptr< T > CreateOrDie(StreamTokenizer &st, Environment *env=NULL)
Dynamically creates an object, whose type and initialization are contained in a specification string...
#define IMPLEMENT_FACTORY(BASE)
Provides the necessary implementation for a factory for the specified BASE class type.
Class to hold a single training instance for a reranker, which is a set of examples, typically the n-best output of some input process, posibly including a gold-standard feature vector.