-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Comments
我也遇到和你一样的问题 @mozillazg |
你好,你可以试试使用下面代码,但愿对你有帮助: from pypinyin import pinyin kxhc1983.load() # 这边加上就不会出现多音字乱入的问题 |
你好,感谢回复,请问有golang版本的吗?
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年5月11日(星期三) 晚上8:23
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [mozillazg/pinyin-data] pinyin.txt的多音字,出现部分音不应该存在的问题 (Issue #49)
你好,你可以试试使用下面代码,但愿对你有帮助:
from pypinyin import pinyin
from pypinyin_dict.pinyin_data import kxhc1983
kxhc1983.load() # 这边加上就不会出现多音字乱入的问题
print(pinyin('王', heteronym=True))
print(pinyin('朝', heteronym=True))
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好!
【朝】,这个多音字就cháo,zhāo,但是这边出现了”zhū“
【朝】,这个多音字就wāng,wǎng,但是这边出现了”hóng“
【王】,这个多音字就wáng,wàng,但是这边出现了”yù“
【覃】,这个多音字就tán,qín,但是这边出现了”yǎn“
麻烦这边看看是否有问题
The text was updated successfully, but these errors were encountered: