Skip to content

Commit

Permalink
[itn] fix 十三五
Browse files Browse the repository at this point in the history
  • Loading branch information
xingchensong committed Jul 9, 2024
1 parent f3a61bd commit 3077cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itn/chinese/rules/cardinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def build_tagger(self):
# 十七八美元 => $17~18, 四十五六岁 => 45-6岁,
# 三百七八公里 => 370-80km, 三百七八十千克 => 370-80kg
number_exclude_0_to_9 |= special_tilde
number_exclude_0_to_9 |= add_weight(_special_dash, -100.0)
number_exclude_0_to_9 |= add_weight(_special_dash, -0.1)

self.number_exclude_0_to_9 = (sign.ques +
number_exclude_0_to_9).optimize()
Expand Down

0 comments on commit 3077cb9

Please sign in to comment.