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

Method vocab

data_utils/tokenization.py:572–573  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

570
571 @property
572 def vocab(self):
573 return self._vocab
574
575 def EncodeAsIds(self, text, process_fn=None):
576 """convert text to ascii 256 Ids"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected