Skip to content

A python wrapper for OpenCC (The Chinese convert solution)

License

Notifications You must be signed in to change notification settings

starofrainnight/pyocc

Repository files navigation

PyOCC

https://ci.appveyor.com/api/projects/status/75t9t6j0xdel9pdx?svg=true

A wrapper for OpenCC (The Chinese convert solution)

  • License: Apache-2.0

Usage

from pyocc import PyOCC

occ = PyOCC()

print(occ.configs)
# => ['hk2s', 's2hk', 's2t', 's2tw', 's2twp', 't2hk', 't2s', 't2tw', 'tw2s', 'tw2sp']

print(occ.translate('中国', 's2t'))
# => 中國

Credits

This package was created with Cookiecutter and the PyPackageTemplate project template.

About

A python wrapper for OpenCC (The Chinese convert solution)

Resources

License

Stars

Watchers

Forks

Packages

No packages published