koutch commited on
Commit
3a21a1d
·
1 Parent(s): 2e30ed9

Update loading script to include additional information in the repair

Browse files
Files changed (1) hide show
  1. 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
- if source == "dublin":
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
 
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