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
Closed

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

richzt opened this issue Dec 20, 2018 · 2 comments
Labels

Comments

@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
Copy link
Owner

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

@mozillazg
Copy link
Owner

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

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