Update loading script to include additional information in the repair
Browse files- intro_prog.py +4 -4
intro_prog.py
CHANGED
@@ -218,10 +218,10 @@ class IntroProg(datasets.GeneratorBasedBuilder):
|
|
218 |
features = main_features
|
219 |
features["correct"] = datasets.Value(dtype="bool")
|
220 |
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
|
226 |
elif task == "metadata":
|
227 |
# metadata information
|
|
|
218 |
features = main_features
|
219 |
features["correct"] = datasets.Value(dtype="bool")
|
220 |
|
221 |
+
if source == "dublin" and (task == "data" or task == "repair"):
|
222 |
+
features["user"] = datasets.Value("string")
|
223 |
+
features["academic_year"] = datasets.Value('int32')
|
224 |
+
features['date']: datasets.Value('timestamp[s]')
|
225 |
|
226 |
elif task == "metadata":
|
227 |
# metadata information
|