Datasets:
GEM
/

Tasks:
Other
Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
Abinaya Mahendiran commited on
Commit
0c1ec7b
1 Parent(s): 88991a8

Updated data loader script

Browse files
Files changed (1) hide show
  1. squad_v2.py +3 -3
squad_v2.py CHANGED
@@ -106,21 +106,21 @@ class SquadV2(datasets.GeneratorBasedBuilder):
106
  datasets.SplitGenerator(
107
  name=datasets.Split.TRAIN,
108
  gen_kwargs={
109
- "filepath": downloaded_files["gem_data_split"]["train"],
110
  "split": "train",
111
  },
112
  ),
113
  datasets.SplitGenerator(
114
  name=datasets.Split.VALIDATION,
115
  gen_kwargs={
116
- "filepath": downloaded_files["gem_data_split"]["validation"],
117
  "split": "validation",
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.TEST,
122
  gen_kwargs={
123
- "filepath": downloaded_files["gem_data_split"]["test"],
124
  "split": "test",
125
  },
126
  ),
 
106
  datasets.SplitGenerator(
107
  name=datasets.Split.TRAIN,
108
  gen_kwargs={
109
+ "filepath": downloaded_files["train"],
110
  "split": "train",
111
  },
112
  ),
113
  datasets.SplitGenerator(
114
  name=datasets.Split.VALIDATION,
115
  gen_kwargs={
116
+ "filepath": downloaded_files["validation"],
117
  "split": "validation",
118
  },
119
  ),
120
  datasets.SplitGenerator(
121
  name=datasets.Split.TEST,
122
  gen_kwargs={
123
+ "filepath": downloaded_files["test"],
124
  "split": "test",
125
  },
126
  ),