Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[itn] fix 八百一千=>800 1000 二十一千=>20 1000, 零千 零万 #246

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

weimeng23
Copy link
Contributor

old:

python -m itn --text 八百一千
cardinal { value: "810000" }
810000
python -m itn --text 二十一千
cardinal { value: "21000" }
21000
python -m itn --text 零千
cardinal { value: "0000" }
0000
python -m itn --text 零万
cardinal { value: "00000" }
00000

fix:

python -m itn --text 零千 --overwrite_cache
char { value: "零" } char { value: "千" }
零千
python -m itn --text 零万 --overwrite_cache
char { value: "零" } char { value: "万" }
零万
python -m itn --text 八百一千 --overwrite_cache
cardinal { value: "800 1000" }
800 1000

@xingchensong xingchensong merged commit 053507e into wenet-e2e:master Jun 19, 2024
1 check passed
@xingchensong
Copy link
Member

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants