Update DEFT2023.py
Browse files- DEFT2023.py +8 -8
DEFT2023.py
CHANGED
@@ -27,7 +27,7 @@ _HOMEPAGE = "https://frenchmedmcqa.github.io"
|
|
27 |
|
28 |
_LICENSE = "Apache License 2.0"
|
29 |
|
30 |
-
_URL = "https://
|
31 |
|
32 |
_CITATION = """\
|
33 |
@unpublished{labrak:hal-03824241,
|
@@ -79,7 +79,7 @@ class DEFT2023(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(
|
@@ -94,12 +94,12 @@ class DEFT2023(datasets.GeneratorBasedBuilder):
|
|
94 |
"filepath": os.path.join(data_dir, "dev.json"),
|
95 |
},
|
96 |
),
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
]
|
104 |
|
105 |
def _generate_examples(self, filepath):
|
|
|
27 |
|
28 |
_LICENSE = "Apache License 2.0"
|
29 |
|
30 |
+
_URL = "https://huggingface.co/datasets/DEFT-2023/DEFT2023/resolve/main/DEFT-2023-FULL.zip"
|
31 |
|
32 |
_CITATION = """\
|
33 |
@unpublished{labrak:hal-03824241,
|
|
|
79 |
def _split_generators(self, dl_manager):
|
80 |
"""Returns SplitGenerators."""
|
81 |
|
82 |
+
data_dir = dl_manager.download_and_extract(_URL) + "/DEFT-2023-FULL/"
|
83 |
|
84 |
return [
|
85 |
datasets.SplitGenerator(
|
|
|
94 |
"filepath": os.path.join(data_dir, "dev.json"),
|
95 |
},
|
96 |
),
|
97 |
+
datasets.SplitGenerator(
|
98 |
+
name=datasets.Split.TEST,
|
99 |
+
gen_kwargs={
|
100 |
+
"filepath": os.path.join(data_dir, "test.json"),
|
101 |
+
},
|
102 |
+
),
|
103 |
]
|
104 |
|
105 |
def _generate_examples(self, filepath):
|