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

pinyin.txt的多音字,出现部分音不应该存在的问题 #49

Open
yangpc170 opened this issue Mar 7, 2022 · 3 comments
Open

Comments

@yangpc170
Copy link

你好!

【朝】,这个多音字就cháo,zhāo,但是这边出现了”zhū
【朝】,这个多音字就wāng,wǎng,但是这边出现了”hóng
【王】,这个多音字就wáng,wàng,但是这边出现了”yù“
【覃】,这个多音字就tán,qín,但是这边出现了”yǎn

麻烦这边看看是否有问题

@chenqgp
Copy link

chenqgp commented May 11, 2022

我也遇到和你一样的问题 @mozillazg

@yangpc170
Copy link
Author

你好,你可以试试使用下面代码,但愿对你有帮助:

from pypinyin import pinyin
from pypinyin_dict.pinyin_data import kxhc1983

kxhc1983.load() # 这边加上就不会出现多音字乱入的问题
print(pinyin('王', heteronym=True))
print(pinyin('朝', heteronym=True))

@chenqgp
Copy link

chenqgp commented May 12, 2022 via email

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

2 participants