7#ifndef PRESET_VOCABULARY_H_
8#define PRESET_VOCABULARY_H_
std::unique_ptr< T > the
Definition common.h:58
Definition preset_vocabulary.cc:17
void Reset()
Definition preset_vocabulary.cc:85
void set_min_phrase_weight(double weight)
Definition preset_vocabulary.h:29
the< VocabularyDb > db_
Definition preset_vocabulary.h:34
PresetVocabulary(const string &vocabulary)
Definition preset_vocabulary.cc:61
bool GetNextEntry(string *key, string *value)
Definition preset_vocabulary.cc:90
bool IsQualifiedPhrase(const string &phrase, const string &weight_str)
Definition preset_vocabulary.cc:100
bool GetWeightForEntry(const string &key, double *weight)
Definition preset_vocabulary.cc:73
static path DictFilePath(const string &vacabulary)
Definition preset_vocabulary.cc:55
int max_phrase_length_
Definition preset_vocabulary.h:35
double min_phrase_weight_
Definition preset_vocabulary.h:36
void set_max_phrase_length(int length)
Definition preset_vocabulary.h:28