Datasets:
saattrupdan
commited on
Commit
•
bd0a6eb
1
Parent(s):
5a9eee5
fix: Use integer indices instead of strings
Browse files- scandiqa.py +3 -3
scandiqa.py
CHANGED
@@ -139,21 +139,21 @@ class ScandiQA(GeneratorBasedBuilder):
|
|
139 |
SplitGenerator(
|
140 |
name=str(Split.TRAIN),
|
141 |
gen_kwargs=dict(
|
142 |
-
filepath=downloaded_files[
|
143 |
split="train",
|
144 |
),
|
145 |
),
|
146 |
SplitGenerator(
|
147 |
name=str(Split.VALIDATION),
|
148 |
gen_kwargs=dict(
|
149 |
-
filepath=downloaded_files[
|
150 |
split="val",
|
151 |
),
|
152 |
),
|
153 |
SplitGenerator(
|
154 |
name=str(Split.TEST),
|
155 |
gen_kwargs=dict(
|
156 |
-
filepath=downloaded_files[
|
157 |
split="test"
|
158 |
),
|
159 |
),
|
|
|
139 |
SplitGenerator(
|
140 |
name=str(Split.TRAIN),
|
141 |
gen_kwargs=dict(
|
142 |
+
filepath=downloaded_files[0],
|
143 |
split="train",
|
144 |
),
|
145 |
),
|
146 |
SplitGenerator(
|
147 |
name=str(Split.VALIDATION),
|
148 |
gen_kwargs=dict(
|
149 |
+
filepath=downloaded_files[1],
|
150 |
split="val",
|
151 |
),
|
152 |
),
|
153 |
SplitGenerator(
|
154 |
name=str(Split.TEST),
|
155 |
gen_kwargs=dict(
|
156 |
+
filepath=downloaded_files[2],
|
157 |
split="test"
|
158 |
),
|
159 |
),
|