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 #188

Closed
abcdbosh opened this issue Feb 4, 2024 · 5 comments · Fixed by #235
Closed

数字的ITN #188

abcdbosh opened this issue Feb 4, 2024 · 5 comments · Fixed by #235

Comments

@abcdbosh
Copy link

abcdbosh commented Feb 4, 2024

需求是添加一些数字的ITN,比如两>2,洞>0,拐>7,该如何修改呢

@xingchensong
Copy link
Member

@abcdbosh
Copy link
Author

abcdbosh commented Feb 4, 2024

只需要修改这个tsv文件吗?我pip安装,将需求的numeber添加到了库内的tsv文件,但是没有效果,

@xingchensong
Copy link
Member

#185

@abcdbosh
Copy link
Author

abcdbosh commented Feb 4, 2024

感谢您的回复,成功生成了新的fst,但是问题还是不能解决,比如洞八,幺两就不能实现ITN,但是四个字的比如:六六拐两就可以~有没有什么办法呢!

@xingchensong
Copy link
Member

你需要enable_0_to_9=True

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 a pull request may close this issue.

2 participants