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

「阿」字在词组中没有被注音 #106

Closed
imdreamrunner opened this Issue Oct 25, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@imdreamrunner

imdreamrunner commented Oct 25, 2017

pypinyin 0.26.0

>>> from pypinyin import pinyin, lazy_pinyin, Style
>>> word = '穆彰阿'
>>> pinyin(word,  heteronym=True)
[['mù'], ['zhāng']]  # 这里漏掉了阿
>>> pinyin(word,  heteronym=False)
[['mù'], ['zhāng']]  # 这里漏掉了阿
>>> word = '穆彰'
>>> pinyin(word,  heteronym=False)
[['mù'], ['zhāng']]
>>> pinyin(word,  heteronym=True)
[['mù'], ['zhāng']]
>>> word = '彰阿'  # 这里没有漏掉阿
>>> pinyin(word,  heteronym=True)
[['zhāng'], ['ā', 'ē', 'ě', 'ǎ', 'à', 'a']]
@mozillazg

This comment has been minimized.

Owner

mozillazg commented Oct 25, 2017

@imdreamrunner 感谢反馈!我会尽快抽空看一下的。

@mozillazg

This comment has been minimized.

Owner

mozillazg commented Oct 25, 2017

@imdreamrunner 请教,穆彰阿ā 还是 ē 来着?查了一下一般读 ā

bors-homu added a commit that referenced this issue Oct 25, 2017

Auto merge of #107 - mozillazg:fix-106, r=mozillazg
使用 phrase-pinyin-data v0.5.1 的词语拼音数据. fixed #106
@imdreamrunner

This comment has been minimized.

imdreamrunner commented Oct 25, 2017

@mozillazg 您好,感谢您这么快的修正。其实我也不确定他的正确读音,感觉一般读 ā

@imdreamrunner

This comment has been minimized.

imdreamrunner commented Oct 25, 2017

@mozillazg 很好奇为什么之前的 phrase-data 会漏掉好些阿字呢?

@mozillazg mozillazg closed this in 4ba0f6e Oct 25, 2017

@mozillazg

This comment has been minimized.

Owner

mozillazg commented Oct 25, 2017

@imdreamrunner 0.26.1 已修复,麻烦升级到最新版。可能是当时使用的原始拼音数据就有问题。

@mozillazg mozillazg added the bug label Jan 29, 2018

@zgdlime

This comment has been minimized.

zgdlime commented Sep 1, 2018

@imdreamrunner
请问python-pinyin如何批量处理?

运行环境
操作系统:Windows10
Python 版本:python-3.4.3
pypinyin 版本:v0.33.0

我有一个文本文件b.txt,utf-8格式,文件里面有内容:
这个
进行
因为
还是
时候
看到
……
想把转换成汉语拼音,该如何操作?

能批处理、拖叠文件等一步到位吗?
指教一下吧!谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment