コード例 #1
0
ファイル: ngram-feature-extractor.C プロジェクト: google/refr
void
NgramFeatureExtractor::ExtractSymbolic(Candidate &candidate,
                                       FeatureVector<string,double> &
                                       symbolic_features) {
  vector<string> tokens;
  tokens.push_back("<s>");
  tokenizer_.Tokenize(candidate.raw_data(), tokens);
  tokens.push_back("</s>");
  ngram_extractor_.Extract(tokens, n_, prefix_, symbolic_features);
}