43 using namespace reranker;
46 main(
int argc,
char **argv) {
48 cout <<
"usage: <feature extractor config filename>" << endl;
51 shared_ptr<ExecutiveFeatureExtractor> efe;
52 efe = ExecutiveFeatureExtractor::InitFromSpec(argv[1]);
56 shared_ptr<Candidate> c1(
new Candidate(0, 0.1, 0.7, 5,
57 "This is a silly string."));
59 shared_ptr<Candidate> c2(
new Candidate(1, 0.2, 0.8, 5,
60 "This is a sillier string."));
63 efe->Extract(candidate_set);
65 cout << candidate_set << endl;
void set_reference_string(const string &reference_string)
void AddCandidate(shared_ptr< Candidate > candidate)
A class to hold a set of candidates, either for training or test.
A class to represent a candidate in a set of candidates that constitutes a training instance for a re...