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
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
File details
Details for the file chinese_converter-1.1.1.tar.gz.
File metadata
- Download URL: chinese_converter-1.1.1.tar.gz
- Upload date:
- Size: 188.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb2cb2514dc36e984bf9b0c2fddabbceb9ff9090b7ff57f54ce474263cf5531
|
|
| MD5 |
f1ccffa2c07092ba97d9d6f489fdace4
|
|
| BLAKE2b-256 |
fd028f7eaa1bcf29b9b088afb01fa727d7539bf1ac31f060a3ebdb3026d5b848
|
File details
Details for the file chinese_converter-1.1.1-py3-none-any.whl.
File metadata
- Download URL: chinese_converter-1.1.1-py3-none-any.whl
- Upload date:
- Size: 190.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a3dd3bf71080f2abbf1a7cd6efa36d940041b6aa65c92572ebacafd463d03f
|
|
| MD5 |
b607cad7a0d3c9eeedc783fd3bde09ac
|
|
| BLAKE2b-256 |
151bd341406d5b3afc7a6890ad095b3616abe1a4194425dbcc7fb772f1df680b
|