36 #ifndef RERANKER_NGRAM_FEATURE_EXTRACTOR_H_
37 #define RERANKER_NGRAM_FEATURE_EXTRACTOR_H_
50 using std::stringstream;
58 void Extract(
const vector<string> &tokens,
102 bool required =
true;
103 initializers.
Add(
"n", &n_, required);
104 initializers.
Add(
"prefix", &prefix_);
Provides the Tokenizer class.
A very simple tokenizer class.
void Add(const string &name, T *member, bool required=false)
A class to represent a candidate in a set of candidates that constitutes a training instance for a re...
A container for all the member initializers for a particular Factory-constructible instance...