fix script
Browse files70 unmodified lines717273747576771 unmodified line79808182838470 unmodified lines]def _generate_examples(self, filepath):logging.info(f"Generating examples from {filepath}")import shutilabspath = os.path.abspath(filepath)newpath = abspath + ".jsonl.zst"1 unmodified line_id = 0reader = lm_dataformat.Reader(newpath)for doc in tqdm(reader.stream_data()):yield _id, {"text": doc}_id += 170 unmodified lines717273747576771 unmodified line79808182838470 unmodified lines]def _generate_examples(self, filepath):logging.warning(f"Generating examples from {filepath}")import shutilabspath = os.path.abspath(filepath)newpath = abspath + ".jsonl.zst"1 unmodified line_id = 0reader = lm_dataformat.Reader(newpath)for doc in tqdm(reader.read_json(newpath)):yield _id, {"text": doc}_id += 1
binhvq_dedup.py+2-2