21 #ifndef FST_SCRIPT_GETTERS_H_ 22 #define FST_SCRIPT_GETTERS_H_ 41 #include <string_view> 69 bool remove_total_weight,
70 bool remove_common_affix) {
90 #endif // FST_SCRIPT_GETTERS_H_ bool GetTokenType(std::string_view str, TokenType *token_type)
bool GetMapType(std::string_view str, MapType *map_type)
constexpr uint8_t kPushRemoveCommonAffix
constexpr uint8_t kPushLabels
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)
constexpr uint8_t kPushWeights
constexpr uint8_t kEncodeLabels
bool GetQueueType(std::string_view str, QueueType *queue_type)
uint8_t GetEncodeFlags(bool encode_labels, bool encode_weights)
constexpr uint8_t kEncodeWeights
bool GetEpsNormalizeType(std::string_view str, EpsNormalizeType *eps_norm_type)
uint8_t GetPushFlags(bool push_weights, bool push_labels, bool remove_total_weight, bool remove_common_affix)
constexpr uint8_t kPushRemoveTotalWeight
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)