convert simplified chinese text to traditional chinese
Project description
Chinese Converter
Converts between Traditional and Simplified Chinese. Uses monogram and bigram frequencies to pick optimal words when a 1-to-1 conversion is not possible.
Uses phrases in the dictionary to count monogram and bigram frequencies.
Installation
pip install chinese-converter
Usage
import chinese_converter
chinese_converter.to_traditional("simplified chinese text...")
chinese_converter.to_simplified("traditional chinese text...")
Testing
python -m unittest
License
MIT
Resources
Not necessary for the normal usage of this library.
-
Dictionary Files: https://resources.publicense.moe.edu.tw/dict_reviseddict_download.html
- Dictionary licensed under CC BY-ND 3.0 TW.
- Mirror: https://chinese-converter-data.s3.amazonaws.com/dict_revised_2015_20180409.zip
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chinese_converter-1.1.0.tar.gz
(188.0 kB
view hashes)
Built Distribution
Close
Hashes for chinese_converter-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9b9598590ef8c5f21f3a1abaec2ac5931f257eeb23e33cc10504a642517975 |
|
MD5 | 7220a820105da26589e1a1484d1330f7 |
|
BLAKE2b-256 | f0164e1ffac548c79aefdb1f3fabb5da76fcd9b2af4e58342d9ad370992eb047 |