Translate chinese chars to pinyin based on Mandarin.dat
Project description
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinyin-0.2.0.tar.gz
(126.0 kB
view details)
File details
Details for the file pinyin-0.2.0.tar.gz
.
File metadata
- Download URL: pinyin-0.2.0.tar.gz
- Upload date:
- Size: 126.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ee3572bb7b542f2b306b9a4cbd1b58d7d992e9e282f8080e36454aa75286b4 |
|
MD5 | 07ecb1519d01527731b261309cd4d1bb |
|
BLAKE2b-256 | 0744b124c7e09c0efa05202db0b3de322aa4142025bd20d7f717b8474c51b67a |