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.2.tar.gz
(187.8 kB
view hashes)
Built Distribution
Close
Hashes for chinese_converter-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84d99f0c26add1f03b0d4a211132226b09e1335b5053587af8070eb72f43ee8a |
|
MD5 | bce13398db2f245b3b24b8cbf483acfa |
|
BLAKE2b-256 | c67fe8b273e5d4badbf3c4417189eda3ed21ed2e7d15ebf7a3f617f5f87e2efc |