MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / encode

Method encode

codegeex/mindspore/src/tokenization_jieba.py:71–73  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

69 return self.decode(ids)
70
71 def encode(self, text):
72 res = self.tokenize(text)
73 return res
74
75 def decode(self, tokens):
76 text = self.sp.decode(tokens)

Callers 10

dicts_to_jsonlFunction · 0.45
unsafe_executeFunction · 0.45
write_jsonlFunction · 0.45
__init__Method · 0.45
__getitem__Method · 0.45
__init__Method · 0.45
encode_codeMethod · 0.45
tokenizeMethod · 0.45

Calls 1

tokenizeMethod · 0.95

Tested by

no test coverage detected