add download
Browse files- Invalsi.py +4 -4
Invalsi.py
CHANGED
@@ -44,8 +44,8 @@ _LICENSE = "CC BY 4.0"
|
|
44 |
_URLS = {
|
45 |
# "mate": "https://huggingface.co/datasets/ai4text/Invalsi/blob/main/invalsi_ita_data.zip",
|
46 |
# "ita": "https://huggingface.co/datasets/ai4text/Invalsi/blob/main/invalsi_mate_data.zip",
|
47 |
-
"mate": "./invalsi_mate_data
|
48 |
-
"ita": "./invalsi_ita_data
|
49 |
}
|
50 |
|
51 |
|
@@ -97,8 +97,8 @@ class invalsi(datasets.GeneratorBasedBuilder):
|
|
97 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
98 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
99 |
urls = _URLS[self.config.name]
|
100 |
-
|
101 |
-
data_dir = "./"
|
102 |
if self.config.name == "mate":
|
103 |
data_file = "invalsi_mate_data/invalsi_mate_clean.csv"
|
104 |
elif self.config.name == "ita":
|
|
|
44 |
_URLS = {
|
45 |
# "mate": "https://huggingface.co/datasets/ai4text/Invalsi/blob/main/invalsi_ita_data.zip",
|
46 |
# "ita": "https://huggingface.co/datasets/ai4text/Invalsi/blob/main/invalsi_mate_data.zip",
|
47 |
+
"mate": "./invalsi_mate_data.zip",
|
48 |
+
"ita": "./invalsi_ita_data.zip",
|
49 |
}
|
50 |
|
51 |
|
|
|
97 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
98 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
99 |
urls = _URLS[self.config.name]
|
100 |
+
data_dir = dl_manager.extract(urls)
|
101 |
+
# data_dir = "./"
|
102 |
if self.config.name == "mate":
|
103 |
data_file = "invalsi_mate_data/invalsi_mate_clean.csv"
|
104 |
elif self.config.name == "ita":
|