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

Method get_text_len

data_utils/corpora.py:47–48  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

45 self.is_lazy = True
46
47 def get_text_len(self, idx):
48 return self.text_lens[idx]
49
50 def __getitem__(self, index):
51 text = self.texts[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected