MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / convert

Method convert

python/opencc/__init__.py:101–103  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

99 self.config = config
100
101 def convert(self, text: str):
102 byte_text = text.encode('utf-8')
103 return super().convert(byte_text, len(byte_text))

Callers 9

test_conversionFunction · 0.95
mainFunction · 0.95
testAsyncFunction · 0.95
mainFunction · 0.80
demo.jsFile · 0.80
opencc.jsFile · 0.80

Calls 1

lenFunction · 0.85