pinyin

0.2.1 MIT/X Consortium License    
  UNRATED

  161 downloads

Translate Chinese chars to pinyin based on Mandarin.dat

description

download

specs

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

#translate chars #Chinese chars #Chinese #chars #translate #Mandarin.dat

0 User reviews so far.

SUBMIT