Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
biomrc.py
CHANGED
@@ -145,33 +145,19 @@ class Biomrc(datasets.GeneratorBasedBuilder):
|
|
145 |
setting = "" if self.config.biomrc_setting == "A" else "_B"
|
146 |
if self.config.biomrc_version == "large":
|
147 |
urls_to_download = {
|
148 |
-
"train": "https://archive.org/download/biomrc_dataset/biomrc_large/dataset_train{}.json.gz"
|
149 |
-
|
150 |
-
|
151 |
-
"val": "https://archive.org/download/biomrc_dataset/biomrc_large/dataset_val{}.json.gz".format(
|
152 |
-
setting
|
153 |
-
),
|
154 |
-
"test": "https://archive.org/download/biomrc_dataset/biomrc_large/dataset_test{}.json.gz".format(
|
155 |
-
setting
|
156 |
-
),
|
157 |
}
|
158 |
elif self.config.biomrc_version == "small":
|
159 |
urls_to_download = {
|
160 |
-
"train": "https://archive.org/download/biomrc_dataset/biomrc_small/dataset_train_small{}.json.gz"
|
161 |
-
|
162 |
-
|
163 |
-
"val": "https://archive.org/download/biomrc_dataset/biomrc_small/dataset_val_small{}.json.gz".format(
|
164 |
-
setting
|
165 |
-
),
|
166 |
-
"test": "https://archive.org/download/biomrc_dataset/biomrc_small/dataset_test_small{}.json.gz".format(
|
167 |
-
setting
|
168 |
-
),
|
169 |
}
|
170 |
else:
|
171 |
urls_to_download = {
|
172 |
-
"test": "https://archive.org/download/biomrc_dataset/biomrc_tiny/dataset_tiny{}.json.gz"
|
173 |
-
setting
|
174 |
-
)
|
175 |
}
|
176 |
|
177 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
|
|
145 |
setting = "" if self.config.biomrc_setting == "A" else "_B"
|
146 |
if self.config.biomrc_version == "large":
|
147 |
urls_to_download = {
|
148 |
+
"train": f"https://archive.org/download/biomrc_dataset/biomrc_large/dataset_train{setting}.json.gz",
|
149 |
+
"val": f"https://archive.org/download/biomrc_dataset/biomrc_large/dataset_val{setting}.json.gz",
|
150 |
+
"test": f"https://archive.org/download/biomrc_dataset/biomrc_large/dataset_test{setting}.json.gz",
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
}
|
152 |
elif self.config.biomrc_version == "small":
|
153 |
urls_to_download = {
|
154 |
+
"train": f"https://archive.org/download/biomrc_dataset/biomrc_small/dataset_train_small{setting}.json.gz",
|
155 |
+
"val": f"https://archive.org/download/biomrc_dataset/biomrc_small/dataset_val_small{setting}.json.gz",
|
156 |
+
"test": f"https://archive.org/download/biomrc_dataset/biomrc_small/dataset_test_small{setting}.json.gz",
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
else:
|
159 |
urls_to_download = {
|
160 |
+
"test": f"https://archive.org/download/biomrc_dataset/biomrc_tiny/dataset_tiny{setting}.json.gz"
|
|
|
|
|
161 |
}
|
162 |
|
163 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|