a python project for getting pinyin for Chinese words or sentence
给汉字注音的一个python库,基本上能正确处理多音字的注音问题
python2.6+, test on python2.7
jieba: https://github.com/fxsjy/jieba
jieba 的 master 分支只支持 python2,这里需要 python3 的测试分支
getPy: give a Chinese sentence, return all possible pinyin with frequency
给定一段中文,返回所有可能的拼音和相应频率
getMaxPy: give a Chinsse sentence, return the pinyin with maximum frequency
给定一段中文,返回最有可能的拼音
please read the test.py file
please read my blog page in Chinese: http://www.smallqiao.com/124804.html
https://pypi.python.org/pypi/pythonpinyin/0.13
pypi 上的版本只能运行在 python2 下,需要使用此 git 中的 py3 分支
如果使用 pip 安装,需要安装 jieba3k