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

transform 的汉字预处理应该仅限于 cn2an #46

Closed
stevenlele opened this issue Apr 11, 2022 · 0 comments
Closed

transform 的汉字预处理应该仅限于 cn2an #46

stevenlele opened this issue Apr 11, 2022 · 0 comments

Comments

@stevenlele
Copy link

c2054c0 (#32) 引入的这行代码,会导致 an2cn 时出现错误的转换:

inputs = inputs.replace("廿", "二十").replace("半", "0.5").replace("两", "2")

应该把这句移动到 cn2an 内。

另外这样的转换也会导致出现问题,例如“全国两会”、“年过半百”,可以考虑放到 #35 追踪。

@Ailln Ailln closed this as completed in 4feca39 Apr 23, 2022
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

No branches or pull requests

1 participant