28 const std::string &doc) {
35 const std::string &doc) {
42 const std::string &doc) {
49 const std::string &doc) {
56 const std::string &doc) {
63 const std::string &doc) {
70 std::map<std::string, T*> &some_map) {
71 if (some_map.end() != some_map.find(key)) {
72 *(some_map[key]) = value;
119 const std::string &value) {
124 std::string str_value = std::string(value);
131 std::map<std::string, T*> &some_map) {
132 typename std::map<std::string, T*>::iterator it = some_map.find(key);
133 if (it != some_map.end()) {
134 *value = *(it->second);
164 std::vector<std::pair<std::string, SimpleOptions::OptionInfo> >
170 for (std::vector <std::pair<std::string,
173 std::pair<std::string, SimpleOptions::OptionInfo> info_pair = (*dx);
174 if (info_pair.first == key) {
175 *type = info_pair.second.type;
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
std::map< std::string, bool * > bool_map_
bool GetOptionType(const std::string &key, OptionType *type)
void Register(const std::string &name, bool *ptr, const std::string &doc)
std::vector< std::pair< std::string, OptionInfo > > GetOptionInfoList()
std::map< std::string, int32 * > int_map_
static bool SetOptionImpl(const std::string &key, const T &value, std::map< std::string, T *> &some_map)
std::map< std::string, uint32 * > uint_map_
std::map< std::string, float * > float_map_
bool SetOption(const std::string &key, const bool &value)
static bool GetOptionImpl(const std::string &key, T *value, std::map< std::string, T *> &some_map)
std::map< std::string, double * > double_map_
bool GetOption(const std::string &key, bool *value)
std::vector< std::pair< std::string, OptionInfo > > option_info_list_
std::map< std::string, std::string * > string_map_