path
Browse files- Invalsi.py +4 -4
Invalsi.py
CHANGED
@@ -95,12 +95,12 @@ class invalsi(datasets.GeneratorBasedBuilder):
|
|
95 |
# 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.
|
96 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
97 |
urls = _URLS[self.config.name]
|
98 |
-
|
99 |
data_dir = "."
|
100 |
if self.config.name == "mate":
|
101 |
-
data_file = "
|
102 |
elif self.config.name == "ita":
|
103 |
-
data_file = "
|
104 |
return [
|
105 |
datasets.SplitGenerator(
|
106 |
name=datasets.Split.VALIDATION,
|
@@ -144,4 +144,4 @@ class invalsi(datasets.GeneratorBasedBuilder):
|
|
144 |
"risposta": row["risposta"],
|
145 |
"immagine": row["image_file_names"],
|
146 |
"test_id": row["test_id"],
|
147 |
-
}
|
|
|
95 |
# 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.
|
96 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
97 |
urls = _URLS[self.config.name]
|
98 |
+
data_dir = dl_manager.download_and_extract(urls)
|
99 |
data_dir = "."
|
100 |
if self.config.name == "mate":
|
101 |
+
data_file = "invalsi_mate_data/invalsi_mate_clean.csv"
|
102 |
elif self.config.name == "ita":
|
103 |
+
data_file = "invalsi_ita_data/invalsi_ita_clean.csv"
|
104 |
return [
|
105 |
datasets.SplitGenerator(
|
106 |
name=datasets.Split.VALIDATION,
|
|
|
144 |
"risposta": row["risposta"],
|
145 |
"immagine": row["image_file_names"],
|
146 |
"test_id": row["test_id"],
|
147 |
+
}
|