Datasets:
Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- 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"
|
109 |
),
|
110 |
datasets.SplitGenerator(
|
111 |
-
name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(data_dir, "test_{}.json"
|
112 |
),
|
113 |
datasets.SplitGenerator(
|
114 |
name=datasets.Split.VALIDATION,
|
115 |
-
gen_kwargs={"filepath": os.path.join(data_dir, "dev_{}.json"
|
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 |
|