-
Notifications
You must be signed in to change notification settings - Fork 0
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
原本那个不加多音字表 没办法返回多个拼音么 #1
Comments
嗯,原本那个是根据词组返回拼音的,比如 |
实在没闹明白算法 我的意思 一个字重 能不能返回它所有的拼音 不加多音字表的情况下 |
还有 哦和哈等多音都不对样 哦 正确的应该是E/O 多音查出来是 E/O/WO 哈 正确的应该是HA 多音查出来是HA/KA 类似的好像还有很多 |
算法你可以参考打造最好的Java拼音库TinyPinyin(一):单字符转拼音的极致优化,因为原本TinyPinyin就没有做单字的多音,所以不加多音表没办法返回多个拼音,只能返回其中一个。换句话说,每个字都成了单音字,没有多音字的存在。因为我是在TinyPinyin的基础上改的,所以我加了一个多音表,如果全部重新写的话,就稍微麻烦一点。 |
关于这个问题,汉字转拼音的数据库最终来源是pinyin4j项目, |
好的 谢谢 |
No description provided.
The text was updated successfully, but these errors were encountered: