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

Method tokenize

codegeex/megatron/tokenizer/tokenizer.py:206–207  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

204 return self.tokenizer.decoder
205
206 def tokenize(self, text):
207 return self.tokenizer.encode(text)
208
209 def detokenize(self, token_ids):
210 return self.tokenizer.decode(token_ids)

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected