We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b87cd commit 1464b94Copy full SHA for 1464b94
run_slc_process.py
@@ -100,11 +100,11 @@ def _update_handler(self):
100
need_update = self.file_handler is None or self.object_count >= self.num_objects
101
if not need_update: return
102
103
- file_path = os.path.join(self.save_dir, "file-%d.jsonl" % self.file_count)
+ file_path = os.path.join(self.save_dir, "file-%d.jsonl.gz" % self.file_count)
104
105
if self.file_handler is not None: self.file_handler.close()
106
107
- self.file_handler = open(file_path, "wb")
+ self.file_handler = gzip.open(file_path, "wb")
108
self.file_count += 1
109
self.object_count = 0
110
0 commit comments