qanastek commited on
Commit
7e0ca09
1 Parent(s): 8983404

Update DEFT2023.py

Browse files
Files changed (1) hide show
  1. 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://drive.google.com/uc?export=download&id=1uH5RvDQnEhfgwC6oXE_xfK63N6Q7slIZ"
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) + "/HuggingFace-Train-Dev-Archive-JSON/"
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
- # 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):
 
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):