Skip to content

Commit

Permalink
updated custom dataset comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdurrett committed Mar 2, 2023
1 parent 56f1dcb commit e7cc9f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def main():
training_args, args = argp.parse_args_into_dataclasses()

# Dataset selection
# IMPORTANT: this code path allows you to load custom datasets different from the standard SQuAD or SNLI ones.
# You need to format the dataset appropriately. For SNLI, you can prepare a file with each line containing one
# example as follows:
# {"premise": "Two women are embracing.", "hypothesis": "The sisters are hugging.", "label": 1}
if args.dataset.endswith('.json') or args.dataset.endswith('.jsonl'):
dataset_id = None
# Load from local json/jsonl file
Expand Down

0 comments on commit e7cc9f4

Please sign in to comment.