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

Method tokenizer

data_utils/datasets.py:406–409  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404
405 @property
406 def tokenizer(self):
407 if self.using_tokenizer:
408 return self._tokenizer
409 return None
410
411 def __getitem__(self, index):
412 """gets the index'th string from the dataset"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected