Skip to content

Commit c7c9f75

Browse files
authored
fix: restore Chinese ITN measure fields in TokenParser ITN_ORDERS (#357)
1 parent 2ddd6dd commit c7c9f75

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tn/token_parser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
"money": ["integer_part", "fractional_part", "quantity", "currency_maj"],
2828
}
2929
ITN_ORDERS = {
30-
"date": ["year", "month", "day"],
30+
"date": ["year", "month", "day", "preserve_order"],
3131
"fraction": ["sign", "numerator", "denominator"],
32-
"measure": ["numerator", "denominator", "value"],
32+
"measure": ["numerator", "denominator", "value", "units"],
3333
"money": ["currency", "value", "decimal"],
3434
"time": ["hour", "minute", "second", "noon"],
35+
"telephone": ["value"],
36+
"electronic": ["username", "domain", "protocol"],
3537
}
3638

3739

0 commit comments

Comments
 (0)