add TODO
Browse files- Invalsi.py +3 -3
Invalsi.py
CHANGED
|
@@ -63,7 +63,7 @@ class invalsi(datasets.GeneratorBasedBuilder):
|
|
| 63 |
def _info(self):
|
| 64 |
if self.config.name == "mate":
|
| 65 |
features = datasets.Features(
|
| 66 |
-
# "immagine": datasets.Value("string"),
|
| 67 |
{
|
| 68 |
"domanda": datasets.Value("string"),
|
| 69 |
"risposta": datasets.Value("string"),
|
|
@@ -121,9 +121,9 @@ class invalsi(datasets.GeneratorBasedBuilder):
|
|
| 121 |
"risposta": row["risposta"],
|
| 122 |
"test_id": row["test_id"],
|
| 123 |
"tipo": row["tipo"],
|
|
|
|
|
|
|
| 124 |
}
|
| 125 |
-
if "image_file_names" in row:
|
| 126 |
-
out["immagine"] = row["image_file_names"]
|
| 127 |
|
| 128 |
yield key, out
|
| 129 |
elif self.config.name == "ita":
|
|
|
|
| 63 |
def _info(self):
|
| 64 |
if self.config.name == "mate":
|
| 65 |
features = datasets.Features(
|
| 66 |
+
# TODO: add after the image col is there "immagine": datasets.Value("string"),
|
| 67 |
{
|
| 68 |
"domanda": datasets.Value("string"),
|
| 69 |
"risposta": datasets.Value("string"),
|
|
|
|
| 121 |
"risposta": row["risposta"],
|
| 122 |
"test_id": row["test_id"],
|
| 123 |
"tipo": row["tipo"],
|
| 124 |
+
# TODO: add after the image col is there "immagine": datasets.Value("string"),
|
| 125 |
+
# "immagine": row["image_file_names"],
|
| 126 |
}
|
|
|
|
|
|
|
| 127 |
|
| 128 |
yield key, out
|
| 129 |
elif self.config.name == "ita":
|