Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs of data preprocessing with multiple json keys #1337

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bugs of data preprocessing with multiple json keys
junjzhang committed Dec 25, 2024
commit 90a7760af90f56e81636f93432f8047506daa600
3 changes: 2 additions & 1 deletion tools/preprocess_data.py
Original file line number Diff line number Diff line change
@@ -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():