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

Method __init__

data_utils/corpora.py:106–111  ·  view source on GitHub ↗
(self, writers, tokenizer=None, tokenize=False, **kwargs)

Source from the content-addressed store, hash-verified

104 pass
105
106 def __init__(self, writers, tokenizer=None, tokenize=False, **kwargs):
107 assert os.path.exists(self.PATH), self.assert_str
108 print_rank_0(f"Creating dataset from {self.PATH}")
109 self.tokenizer = tokenizer
110 self.tokenize = tokenize
111 self.writers = writers
112
113 def process(self):
114 if os.path.isdir(self.PATH):

Callers

nothing calls this directly

Calls 2

print_rank_0Function · 0.90
existsMethod · 0.45

Tested by

no test coverage detected