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.1.tar.gz
(126.0 kB
view details)
File details
Details for the file pinyin-0.2.1.tar.gz
.
File metadata
- Download URL: pinyin-0.2.1.tar.gz
- Upload date:
- Size: 126.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32cc76d929f92cd78f94a38ffef11afa14fbfb516df487ce18c5d5ad1af43b1 |
|
MD5 | 3d744fe94333c76c8ee59b6d46a2b0b6 |
|
BLAKE2b-256 | a9b21371a44afde7cc2bdf67549da16d53887d8ef328ba705f78e8337b09d01b |