Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachary822/chinese-converter
Converts between traditional and simplified Chinese
https://github.com/zachary822/chinese-converter
chinese chinese-simplified chinese-traditional translate
Last synced: 6 days ago
JSON representation
Converts between traditional and simplified Chinese
- Host: GitHub
- URL: https://github.com/zachary822/chinese-converter
- Owner: zachary822
- License: mit
- Created: 2019-02-03T04:34:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T01:27:55.000Z (5 months ago)
- Last Synced: 2024-09-09T02:41:56.535Z (5 months ago)
- Topics: chinese, chinese-simplified, chinese-traditional, translate
- Language: Python
- Homepage: https://pypi.org/project/chinese-converter/
- Size: 203 KB
- Stars: 25
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
```bash
pip install chinese-converter
```## Usage
```python
import chinese_converterchinese_converter.to_traditional("simplified chinese text...")
chinese_converter.to_simplified("traditional chinese text...")```
## Testing
```bash
python -m unittest
```## License
MIT
## Resources
*Not necessary for the normal usage of this library.*
1. Dictionary Files: https://resources.publicense.moe.edu.tw/dict_reviseddict_download.html
- Dictionary licensed under [CC BY-ND 3.0 TW](https://creativecommons.org/licenses/by-nd/3.0/tw/).
- Mirror: https://chinese-converter-data.s3.amazonaws.com/dict_revised_2015_20180409.zip