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

Method DecodeIds

data_utils/tokenization.py:537–539  ·  view source on GitHub ↗

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

(self, Ids)

Source from the content-addressed store, hash-verified

535 raise NotImplementedError('TextTokenizer TokenToId not implemented')
536
537 def DecodeIds(self, Ids):
538 """Convert a list or tokenization object of Ids to a text string"""
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"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected