38 #ifndef RERANKER_EXECUTIVE_FEATURE_EXTRACTOR_H_
39 #define RERANKER_EXECUTIVE_FEATURE_EXTRACTOR_H_
55 using std::shared_ptr;
77 static shared_ptr<ExecutiveFeatureExtractor>
InitFromSpec(
78 const string &filename);
84 virtual void Reset()
const = 0;
93 #define REGISTER_NAMED_EXECUTIVE_FEATURE_EXTRACTOR(TYPE,NAME) \
94 REGISTER_NAMED(TYPE,NAME,ExecutiveFeatureExtractor)
96 #define REGISTER_EXECUTIVE_FEATURE_EXTRACTOR(TYPE) \
97 REGISTER_NAMED_EXECUTIVE_FEATURE_EXTRACTOR(TYPE,TYPE)
100 virtual void RegisterInitializers(
Initializers &initializers) {
101 initializers.
Add(
"extractors", &extractors_);
103 virtual void Reset()
const;
104 virtual void Extract(
CandidateSet &candidate_set)
const;
108 vector<shared_ptr<FeatureExtractor> > extractors_;
Provides the reranker::Candidate class for representing a candidate hypothesis from an initial model...
Provides the Tokenizer class.
void Add(const string &name, T *member, bool required=false)
A class to hold a set of candidates, either for training or test.
An interface to make it easier to implement Factory-constructible types by implementing both required...
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.
A container for all the member initializers for a particular Factory-constructible instance...