pinyin

  161 downloads
0.2.1 MIT/X Consortium License    
  not rated
Translate Chinese chars to pinyin based on Mandarin.dat

description

download

specifications

pinyin is a Python tool to translate Chinese chars to pinyin based on Mandarin.dat.

Usage

Input unicode string

>>> import pinyin
>>> pinyin.get_pinyin(u'你好')
'nihao'
>>> pinyin.get_initial(u'你好')
'n h'
READ MORE   
Last updated on September 4th, 2012

0 User reviews so far.

SUBMIT