Smart Chinese-to-Pinyin converter.
Project description
Pinyin
Smart Chinese-to-Pinyin converter.
fork from https://github.com/mapix/Pinyin
Getting Started
pip install smart_pinyin
Usage
>>> from pinyin import Pinyin
>>> pinyin = Pinyin()
>>> ' '.join(pinyin.get_pinyin('银行行长潘玮柏长了一头乌黑的白发, 睡觉睡的很晚, 道行很深', failure=''))
>>> u'yin hang hang zhang pan wei bo zhang le yi tou wu hei de bai fa shui jiao shui de hen wan dao heng hen shen'
>>> for i in pinyin.get_pinyin_all('自行车'): print list(i)
[u'zi', u'hang', u'che']
[u'zi', u'hang', u'ju']
[u'zi', u'heng', u'che']
[u'zi', u'heng', u'ju']
[u'zi', u'xing', u'che']
[u'zi', u'xing', u'ju']
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
smart_pinyin-0.5.2.tar.gz
(148.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
smart_pinyin-0.5.2-py3-none-any.whl
(144.1 kB
view details)
File details
Details for the file smart_pinyin-0.5.2.tar.gz.
File metadata
- Download URL: smart_pinyin-0.5.2.tar.gz
- Upload date:
- Size: 148.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b8a7b2877e65179c395d15a76063a8288f78195aa348f69bbf8076ae6dc8f6
|
|
| MD5 |
6dfb3e7246f331c4433da1d3479e0687
|
|
| BLAKE2b-256 |
4709c5f55076c7d377a03465c7b6b8f3e811917761d18be64d1a28531c50ba57
|
File details
Details for the file smart_pinyin-0.5.2-py3-none-any.whl.
File metadata
- Download URL: smart_pinyin-0.5.2-py3-none-any.whl
- Upload date:
- Size: 144.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e7c0881ea5f2ccba4c3af8bf26b2a8779e8c623da4690d2ec69872d08c6be56
|
|
| MD5 |
5ee5f2364357241f2bd0e0756d11a988
|
|
| BLAKE2b-256 |
b90e48cbb076fd7ba95c47e1af0a9db14de9474c27c310d47a8bc5c791dea13b
|