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

"三四万"转换正确,但是“三四十万“转化错误 #232

Closed
vbiwuevbaeib opened this issue Jun 5, 2024 · 3 comments · Fixed by #234
Closed

"三四万"转换正确,但是“三四十万“转化错误 #232

vbiwuevbaeib opened this issue Jun 5, 2024 · 3 comments · Fixed by #234

Comments

@vbiwuevbaeib
Copy link

”三四十万“会被理解为”三四 十万“,这种问题应该怎么修改优化呢?

invnormalizer.normalize("需要三四万")
char { value: "需" } char { value: "要" } cardinal { value: "34万" }
'需要3
4万'
invnormalizer.normalize("需要三四十万")
char { value: "需" } char { value: "要" } cardinal { value: "34 100000" }
'需要3
4 100000'

@vbiwuevbaeib
Copy link
Author

还有像整数+约数范围,有时候也会出错,比如:

invnormalizer.normalize("需要一万六七")
char { value: "需" } char { value: "要" } cardinal { value: "10000 67" }
'需要10000 6
7'

@xingchensong
Copy link
Member

#234 修好了

@vbiwuevbaeib
Copy link
Author

可以了,非常感谢!

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