Skip to main content

Python implementation of StarCC

Project description

StarCC-Py

Python implementation of StarCC

pip install starcc

用法 Usage

from StarCC import Conversion, Dicts
convert = Conversion((Dicts.CN2ST, Dicts.ST2HK))  # change conversion mode here
print(convert('为什么你在床里面睡着?我们的硅二极管坏了,要去老挝修理。'))
# 為什麼你在牀裏面睡着?我們的硅二極管壞了,要去老撾修理。

轉換模式一覽 Supported conversion modes

源文本
From
目標文本
To
轉換詞彙?
Convert Phrases?
配置
Config
zh-CN zh-HK Conversion((Dicts.CN2ST, Dicts.ST2HK))
zh-CN zh-TW Conversion((Dicts.CN2ST, Dicts.ST2TW))
zh-CN zh-JP Conversion((Dicts.CN2ST, Dicts.ST2JP))
zh-HK zh-CN Conversion((Dicts.HK2ST, Dicts.ST2CN))
zh-HK zh-TW Conversion((Dicts.HK2ST, Dicts.ST2TW))
zh-HK zh-JP Conversion((Dicts.HK2ST, Dicts.ST2JP))
zh-TW zh-CN Conversion((Dicts.TW2ST, Dicts.ST2CN))
zh-TW zh-HK Conversion((Dicts.TW2ST, Dicts.ST2HK))
zh-TW zh-JP Conversion((Dicts.TW2ST, Dicts.ST2JP))
zh-JP zh-CN Conversion((Dicts.JP2ST, Dicts.ST2CN))
zh-JP zh-HK Conversion((Dicts.JP2ST, Dicts.ST2HK))
zh-JP zh-TW Conversion((Dicts.JP2ST, Dicts.ST2TW))
zh-CN zh-TW Conversion((Dicts.CN2ST, Dicts.ST2TWP))
zh-TW zh-CN Conversion((Dicts.TWP2ST, Dicts.ST2CN))

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

starcc-0.0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

starcc-0.0.1-py3-none-any.whl (477.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page