We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在执行以下代码: from tn.chinese.normalizer import Normalizer normalizer = Nrmalizer() text = '起始金额一共有500、1000两个金额档' text_norm = normalizer.normalize(text)
输出text_norm为:起始金额一共有五零零、一千两个金额档。 将500读成了五零零,希望读成五百。
请问怎么正确的将500读成五百
The text was updated successfully, but these errors were encountered:
应该是tn/chinese/rules/cardinal.py里
phone = phone_digits**3 | phone_digits**5 | phone_digits**11
这一行的问题,迫使3位和5位数字都这么念了。我是注释掉了,重写了一个只对11位电话号码有效的处理
Sorry, something went wrong.
No branches or pull requests
在执行以下代码:
from tn.chinese.normalizer import Normalizer
normalizer = Nrmalizer()
text = '起始金额一共有500、1000两个金额档'
text_norm = normalizer.normalize(text)
输出text_norm为:起始金额一共有五零零、一千两个金额档。
将500读成了五零零,希望读成五百。
请问怎么正确的将500读成五百
The text was updated successfully, but these errors were encountered: