Skip to content

Commit

Permalink
fix bugs of data preprocessing with multiple json keys
Browse files Browse the repository at this point in the history
  • Loading branch information
junjzhang committed Dec 25, 2024
1 parent 2da43ef commit 90a7760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def process_json_file(self, file_name):
self.print_processing_stats(i, proc_start, total_bytes_processed)

fin.close()
builders[key].finalize(output_idx_files[key])
for key in builders.keys():
builders[key].finalize(output_idx_files[key])


def get_args():
Expand Down

0 comments on commit 90a7760

Please sign in to comment.