Datasets:
Replaced Dataverse zips with HF Hub hosted zips
Browse files- IBDColEpi.py +4 -14
IBDColEpi.py
CHANGED
|
@@ -53,20 +53,10 @@ _LICENSE = "MIT"
|
|
| 53 |
# TODO: Add link to the official dataset URLs here
|
| 54 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 55 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
"part4": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/AZNXDW",
|
| 61 |
-
"part5": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/5QEDTH",
|
| 62 |
-
"part6": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/APRUCP",
|
| 63 |
-
"part7": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/YWJXJ8",
|
| 64 |
-
"part8": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/G3KIOU",
|
| 65 |
-
"part9": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/SWALD9",
|
| 66 |
-
"part10": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/6ZJ4KD",
|
| 67 |
-
"wsi-annotations": "https://dataverse.no/api/access/datafile/:persistentId?persistentId=doi:10.18710/TLA01U/PMZJPQ",
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
|
| 71 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
| 72 |
class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
|
|
| 53 |
# TODO: Add link to the official dataset URLs here
|
| 54 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 55 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 56 |
+
base_path = "https://huggingface.co/datasets/andreped/IBDColEpi/blob/main/"
|
| 57 |
+
_URLS = {"part" + str(x): base_path + "WSI_part0" + str(x) + ".zip" for x in range(1, 10)}
|
| 58 |
+
_URLS["part10"] = base_path + "WSI_part10.zip"
|
| 59 |
+
_URLS["wsi-annotations"] = base_path + "TIFF-annotations.zip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
| 62 |
class IBDColEpi(datasets.GeneratorBasedBuilder):
|