Skip to content

Instantly share code, notes, and snippets.

@mkckr0
Created February 3, 2023 02:47
Show Gist options
  • Save mkckr0/553b9e0ddeec836d898b7cda54f0d2db to your computer and use it in GitHub Desktop.
Save mkckr0/553b9e0ddeec836d898b7cda54f0d2db to your computer and use it in GitHub Desktop.
convert cht ot chs
import opencc
cvt = opencc.OpenCC('t2s.json')
dst = cvt.convert(src)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment