How to use the opencc.convert function in OpenCC

To help you get started, we’ve selected a few OpenCC examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lepture / opencc-python / tests / test_ctypes.py View on Github external
def test_convert():
    text = '乾坤一擲'
    expect = '乾坤一掷'
    assert convert(text) == expect

OpenCC

Conversion between Traditional and Simplified Chinese

Apache-2.0
Latest version published 3 months ago

Package Health Score

85 / 100
Full package analysis