A wrapper for OpenCC (The Chinese convert solution)
- License: Apache-2.0
from pyocc import PyOCC
occ = PyOCC()
print(occ.configs)
# => ['hk2s', 's2hk', 's2t', 's2tw', 's2twp', 't2hk', 't2s', 't2tw', 'tw2s', 'tw2sp']
print(occ.translate('中国', 's2t'))
# => 中國
This package was created with Cookiecutter and the PyPackageTemplate project template.