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

特定词组汉字转拼音出错 #151

Closed
richzt opened this Issue Dec 20, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@richzt
Copy link

richzt commented Dec 20, 2018

运行环境

  • 操作系统(Linux/macOS/Windows): windows7
  • Python 版本: python2.7
  • pypinyin 版本: 0.33.1

问题描述

输入"油炸"转拼音出错

问题复现步骤

#encoding:utf-8
from pypinyin import pinyin, Style
txt = "油炸"
pinyin_list = pinyin(txt.decode("utf-8"), style=Style.TONE3)
for item in pinyin_list:
print(item)

得到的答案为:

[u'zha2']
[u'zha2']

@mozillazg

This comment has been minimized.

Copy link
Owner

mozillazg commented Dec 20, 2018

@richzt 感谢反馈。这个词组确实有问题,我有空的时候更新一下。

@mozillazg mozillazg added the bug label Dec 20, 2018

@mozillazg mozillazg closed this in ae2c31e Dec 30, 2018

@mozillazg

This comment has been minimized.

Copy link
Owner

mozillazg commented Dec 30, 2018

@richzt 最新版(0.34.1)已修复这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.