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

汉语和字母混合时字母后面的汉字不转换 #8

Closed
nbsky opened this issue Dec 26, 2014 · 1 comment
Closed

汉语和字母混合时字母后面的汉字不转换 #8

nbsky opened this issue Dec 26, 2014 · 1 comment
Labels

Comments

@nbsky
Copy link

@nbsky nbsky commented Dec 26, 2014

pip install jieba
pip install pypinyin
from pypinyin import pinyin, lazy_pinyin
print lazy_pinyin(u'黄山B股')
[u'huang', u'shan', u'B', u'\u80a1']

@mozillazg
Copy link
Owner

@mozillazg mozillazg commented Dec 26, 2014

@nbsky 嗯,我刚看了一下。
是无法正确处理由分词模块产生的中英文混合词组(比如:B超,维生素C)的问题。
问题已修复。

@mozillazg mozillazg closed this in db18266 Dec 26, 2014
@mozillazg mozillazg added the bug label Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants