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

想问一下作者大佬多音字是怎么判断该用哪个读音的 #306

Closed
piano-accordion opened this issue Sep 6, 2023 · 1 comment
Labels

Comments

@piano-accordion
Copy link

想问一下作者大佬多音字是怎么判断该用哪个读音的,是用词表之类的规则来做,还是可以用深度学习做呢~印象里输入法里的拼音支持的很完善,不知道他们又是怎么做的。

@mozillazg
Copy link
Owner

是用词表之类的规则来做

当前 pypinyin 用的是这个方法,准确性不是很好。

还是可以用深度学习做

如果对准确性要求更高的话,更推荐用类似的方法实现。

之前关于这个的讨论详见:#133 (comment)

印象里输入法里的拼音支持的很完善,不知道他们又是怎么做的。

关于输入法的实现,可以参考 #184 (comment) 这里提到的项目,
或者参考知名输入法 rime 的实现:https://github.com/rime/librime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants