Update FrenchMedMCQA.py
Browse files- FrenchMedMCQA.py +4 -4
FrenchMedMCQA.py
CHANGED
@@ -79,25 +79,25 @@ class FrenchMedMCQA(datasets.GeneratorBasedBuilder):
|
|
79 |
def _split_generators(self, dl_manager):
|
80 |
"""Returns SplitGenerators."""
|
81 |
|
82 |
-
data_dir = dl_manager.download_and_extract(_URL)
|
83 |
|
84 |
return [
|
85 |
datasets.SplitGenerator(
|
86 |
name=datasets.Split.TRAIN,
|
87 |
gen_kwargs={
|
88 |
-
"filepath":
|
89 |
},
|
90 |
),
|
91 |
datasets.SplitGenerator(
|
92 |
name=datasets.Split.VALIDATION,
|
93 |
gen_kwargs={
|
94 |
-
"filepath":
|
95 |
},
|
96 |
),
|
97 |
datasets.SplitGenerator(
|
98 |
name=datasets.Split.TEST,
|
99 |
gen_kwargs={
|
100 |
-
"filepath":
|
101 |
},
|
102 |
),
|
103 |
]
|
|
|
79 |
def _split_generators(self, dl_manager):
|
80 |
"""Returns SplitGenerators."""
|
81 |
|
82 |
+
data_dir = dl_manager.download_and_extract(_URL).rstrip("/")
|
83 |
|
84 |
return [
|
85 |
datasets.SplitGenerator(
|
86 |
name=datasets.Split.TRAIN,
|
87 |
gen_kwargs={
|
88 |
+
"filepath": data_dir + "/train.json",
|
89 |
},
|
90 |
),
|
91 |
datasets.SplitGenerator(
|
92 |
name=datasets.Split.VALIDATION,
|
93 |
gen_kwargs={
|
94 |
+
"filepath": data_dir + "/dev.json",
|
95 |
},
|
96 |
),
|
97 |
datasets.SplitGenerator(
|
98 |
name=datasets.Split.TEST,
|
99 |
gen_kwargs={
|
100 |
+
"filepath": data_dir + "/test.json",
|
101 |
},
|
102 |
),
|
103 |
]
|