Skip to content
/ pinyin Public
forked from lxyu/pinyin

A simple python script to translate chinese to pinyin based on Mandarin.dat

License

Notifications You must be signed in to change notification settings

oldcai/pinyin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinyin

https://travis-ci.org/lxyu/pinyin.png?branch=master

Translate chinese chars to pinyin based on Mandarin.dat

Install

$ pip install pinyin

Usage

>>> import pinyin
>>> pinyin.get(u'你好')
'nihao'
>>> pinyin.get_initial(u'你好')
'n h'

About

A simple python script to translate chinese to pinyin based on Mandarin.dat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%