Skip to content

Commit f5965f7

Browse files
authored
[runtime] fix english tn order (#222)
1 parent 385ce76 commit f5965f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/processor/wetext_token_parser.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const std::unordered_map<std::string, std::vector<std::string>> ZH_TN_ORDERS = {
3333
{"money", {"value", "currency"}},
3434
{"time", {"noon", "hour", "minute", "second"}}};
3535
const std::unordered_map<std::string, std::vector<std::string>> EN_TN_ORDERS = {
36-
{"date", {"preserve_order", "text", "day", "month", "year"}}};
36+
{"date", {"preserve_order", "text", "day", "month", "year"}},
37+
{"money", {"integer_part", "fractional_part", "quantity", "currency_maj"}}};
3738
const std::unordered_map<std::string, std::vector<std::string>> ZH_ITN_ORDERS =
3839
{{"date", {"year", "month", "day"}},
3940
{"fraction", {"sign", "numerator", "denominator"}},

0 commit comments

Comments
 (0)