Skip to content

Commit

Permalink
silly
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 6, 2024
1 parent 4f377d5 commit c7e4d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rankers/train/data_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __post_init__(self):
except Exception as e:
raise ValueError(f"Unable to load ir_dataset: {e}")
assert self.training_dataset_file.endswith('jsonl') or self.training_dataset_file.endswith('jsonl.gz'), "Training dataset should be a JSONL file"
self.training_data = load_json(self.training_dataset_file)
self.training_data = pd.read_json(self.training_dataset_file, lines=True, orient='records')
if self.teacher_file:
assert self.teacher_file.endswith('json') or self.teacher_file.endswith('json.gz'), "Teacher file should be a JSON file"
self.teacher_data = load_json(self.teacher_file)
Expand Down

0 comments on commit c7e4d0a

Please sign in to comment.