Skip to main content

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

Metadata

Release files for chinese-converter 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chinese-converter 1.1.1
File Size Uploaded
chinese_converter-1.1.1.tar.gz 188.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chinese-converter 1.1.1
File Interpreter ABI Platform
chinese_converter-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 379.0 kB

Release files / chinese_converter-1.1.1.tar.gz

Download URL chinese_converter-1.1.1.tar.gz
Size 188.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dcb2cb2514dc36e984bf9b0c2fddabbceb9ff9090b7ff57f54ce474263cf5531
BLAKE2b-256 checksum
How to use checksums
fd028f7eaa1bcf29b9b088afb01fa727d7539bf1ac31f060a3ebdb3026d5b848
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / chinese_converter-1.1.1-py3-none-any.whl

Download URL chinese_converter-1.1.1-py3-none-any.whl
Size 190.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47a3dd3bf71080f2abbf1a7cd6efa36d940041b6aa65c92572ebacafd463d03f
BLAKE2b-256 checksum
How to use checksums
151bd341406d5b3afc7a6890ad095b3616abe1a4194425dbcc7fb772f1df680b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page