saattrupdan commited on
Commit
917b889
1 Parent(s): 7147e8d

fix: Split names

Browse files
Files changed (1) hide show
  1. scandiqa.py +7 -4
scandiqa.py CHANGED
@@ -140,22 +140,25 @@ class ScandiQA(GeneratorBasedBuilder):
140
  downloaded_files = dl_manager.download_and_extract(urls)
141
  return [
142
  SplitGenerator(
143
- name=str(Split.TRAIN),
144
  gen_kwargs=dict(
145
  filepath=downloaded_files[0],
146
  split="train",
147
  ),
148
  ),
149
  SplitGenerator(
150
- name=str(Split.VALIDATION),
151
  gen_kwargs=dict(
152
  filepath=downloaded_files[1],
153
  split="val",
154
  ),
155
  ),
156
  SplitGenerator(
157
- name=str(Split.TEST),
158
- gen_kwargs=dict(filepath=downloaded_files[2], split="test"),
 
 
 
159
  ),
160
  ]
161
 
 
140
  downloaded_files = dl_manager.download_and_extract(urls)
141
  return [
142
  SplitGenerator(
143
+ name="train",
144
  gen_kwargs=dict(
145
  filepath=downloaded_files[0],
146
  split="train",
147
  ),
148
  ),
149
  SplitGenerator(
150
+ name="val",
151
  gen_kwargs=dict(
152
  filepath=downloaded_files[1],
153
  split="val",
154
  ),
155
  ),
156
  SplitGenerator(
157
+ name="test",
158
+ gen_kwargs=dict(
159
+ filepath=downloaded_files[2],
160
+ split="test"
161
+ ),
162
  ),
163
  ]
164