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

Class BertData

data_utils/corpora.py:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403
404class BertData(PromptReader):
405 is_json = False
406 PATH = '/dataset/fd5061f6/english_data/wikibook'
407
408 def process_line(self, data, tokenizer, tokenize):
409 if data:
410 prompt, text = "", data
411 prompt, text = self.process_sample(prompt, tokenizer, tokenize), self.process_sample(text, tokenizer,
412 tokenize)
413 return [prompt], [text]
414 else:
415 return [], []
416
417
418class Pile(PromptReader):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected