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
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.0.1.tar.gz
(187.9 kB
view hashes)
Built Distribution
Close
Hashes for chinese_converter-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4813d009a6c99f69b6a34c3196f1d8b668bcba0ad7270023fdbc571b775257 |
|
MD5 | ddf0e0145eb6e9fb96fd0e885161f918 |
|
BLAKE2b-256 | 97268c955c3fc3e6e29e3bcb117fedc1004baffa3886b22087d1e19737e73e27 |