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

“受”字在多音字模式下拼音错误 #321

Open
EillesWan opened this issue Jun 25, 2024 · 1 comment
Open

“受”字在多音字模式下拼音错误 #321

EillesWan opened this issue Jun 25, 2024 · 1 comment

Comments

@EillesWan
Copy link

运行环境

  • 操作系统:Windows 10
  • Python 版本:3.10.11
  • pypinyin 版本:0.51.0

问题描述

在多音字参数为True时,汉字“受”出现了不属于它的读音:

>>> pinyin("", style=Style.TONE3, v_to_u=True,heteronym=True)
[['shou4', 'dao4']]

问题复现步骤

将 heteronym 设置为 True,不进行其他设置,对“受”字求取读音,如:

from pypinyin import pinyin
pinyin("受",heteronym=True)

错误地返回为:[['shòu', 'dào']]

@mozillazg
Copy link
Owner

@EillesWan 感谢反馈!

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