MCPcopy Create free account
hub / github.com/THUDM/GLM / DecodeTokens

Method DecodeTokens

data_utils/tokenization.py:541–543  ·  view source on GitHub ↗

Convert a list or tokenization object of tokens to a text string

(self, Tokens)

Source from the content-addressed store, hash-verified

539 raise NotImplementedError('TextTokenizer DecodeIds not implemented')
540
541 def DecodeTokens(self, Tokens):
542 """Convert a list or tokenization object of tokens to a text string"""
543 raise NotImplementedError('TextTokenizer DecodeTokens not implemented')
544
545
546class CharacterLevelTokenizer(TextTokenizer):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected