system HF staff commited on
Commit
0bc71c9
1 Parent(s): 2131957

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. head_qa.py +3 -3
head_qa.py CHANGED
@@ -105,14 +105,14 @@ class HeadQA(datasets.GeneratorBasedBuilder):
105
 
106
  return [
107
  datasets.SplitGenerator(
108
- name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(data_dir, "train_{}.json".format(dir))}
109
  ),
110
  datasets.SplitGenerator(
111
- name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(data_dir, "test_{}.json".format(dir))}
112
  ),
113
  datasets.SplitGenerator(
114
  name=datasets.Split.VALIDATION,
115
- gen_kwargs={"filepath": os.path.join(data_dir, "dev_{}.json".format(dir))},
116
  ),
117
  ]
118
 
 
105
 
106
  return [
107
  datasets.SplitGenerator(
108
+ name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(data_dir, f"train_{dir}.json")}
109
  ),
110
  datasets.SplitGenerator(
111
+ name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(data_dir, f"test_{dir}.json")}
112
  ),
113
  datasets.SplitGenerator(
114
  name=datasets.Split.VALIDATION,
115
+ gen_kwargs={"filepath": os.path.join(data_dir, f"dev_{dir}.json")},
116
  ),
117
  ]
118