35 #include <string_view> 43 }
else if (str ==
"epsilon") {
45 }
else if (str ==
"iepsilon") {
47 }
else if (str ==
"oepsilon") {
56 if (str ==
"ilabel") {
58 }
else if (str ==
"olabel") {
69 }
else if (str ==
"plus") {
78 if (str ==
"alt_sequence") {
80 }
else if (str ==
"auto") {
82 }
else if (str ==
"match") {
84 }
else if (str ==
"no_match") {
86 }
else if (str ==
"null") {
88 }
else if (str ==
"sequence") {
90 }
else if (str ==
"trivial") {
99 if (str ==
"functional") {
101 }
else if (str ==
"nonfunctional") {
103 }
else if (str ==
"disambiguate") {
113 if (str ==
"input") {
115 }
else if (str ==
"output") {
124 if (str ==
"arc_sum") {
126 }
else if (str ==
"arc_unique") {
128 }
else if (str ==
"identity") {
130 }
else if (str ==
"input_epsilon") {
132 }
else if (str ==
"invert") {
134 }
else if (str ==
"output_epsilon") {
136 }
else if (str ==
"plus") {
138 }
else if (str ==
"power") {
140 }
else if (str ==
"quantize") {
142 }
else if (str ==
"rmweight") {
144 }
else if (str ==
"superfinal") {
146 }
else if (str ==
"times") {
148 }
else if (str ==
"to_log") {
150 }
else if (str ==
"to_log64") {
152 }
else if (str ==
"to_std" || str ==
"to_standard") {
161 if (str ==
"input") {
163 }
else if (str ==
"output") {
172 if (str ==
"uniform") {
174 }
else if (str ==
"log_prob") {
176 }
else if (str ==
"fast_log_prob") {
187 }
else if (str ==
"fifo") {
189 }
else if (str ==
"lifo") {
191 }
else if (str ==
"shortest") {
193 }
else if (str ==
"state") {
195 }
else if (str ==
"top") {
205 if (epsilon_on_replace || str ==
"neither") {
207 }
else if (str ==
"input") {
209 }
else if (str ==
"output") {
211 }
else if (str ==
"both") {
220 if (str ==
"to_initial") {
222 }
else if (str ==
"to_final") {
237 }
else if (str ==
"utf8") {
239 }
else if (str ==
"symbol") {
bool GetTokenType(std::string_view str, TokenType *token_type)
bool GetMapType(std::string_view str, MapType *map_type)
constexpr uint64_t kDefaultSeed
bool GetArcSortType(std::string_view str, ArcSortType *sort_type)
bool GetRandArcSelection(std::string_view str, RandArcSelection *ras)
bool GetDeterminizeType(std::string_view str, DeterminizeType *det_type)
bool GetReplaceLabelType(std::string_view str, bool epsilon_on_replace, ReplaceLabelType *rlt)
bool GetComposeFilter(std::string_view str, ComposeFilter *compose_filter)
bool GetClosureType(std::string_view str, ClosureType *closure_type)
uint64_t GetSeed(uint64_t seed)
bool GetQueueType(std::string_view str, QueueType *queue_type)
bool GetEpsNormalizeType(std::string_view str, EpsNormalizeType *eps_norm_type)
bool GetReweightType(std::string_view str, ReweightType *reweight_type)
bool GetArcFilterType(std::string_view str, ArcFilterType *arc_filter_type)
bool GetProjectType(std::string_view str, ProjectType *project_type)