Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

  1. 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.

Files for chinese-converter, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size chinese_converter-1.0.2-py3-none-any.whl (191.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size chinese-converter-1.0.2.tar.gz (187.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page