Igor commited on
Commit
24184a2
·
1 Parent(s): 6427dab

Ensure new labels appear

Browse files
Files changed (1) hide show
  1. daiso.py +5 -0
daiso.py CHANGED
@@ -1394,6 +1394,11 @@ class DAISO(datasets.GeneratorBasedBuilder):
1394
  ))
1395
  features["Label_ISO"] = datasets.features.ClassLabel(
1396
  names=list(set([map.get("ISO", "OOD") for map in self.config.label_classes.values()])))
 
 
 
 
 
1397
  features["Idx"] = datasets.Value("int32")
1398
  features["Speaker_Id"] = datasets.features.ClassLabel(names=self.config.speakers)
1399
  # if self.config.name == "": # This is the name of the configuration selected in BUILDER_CONFIGS above
 
1394
  ))
1395
  features["Label_ISO"] = datasets.features.ClassLabel(
1396
  names=list(set([map.get("ISO", "OOD") for map in self.config.label_classes.values()])))
1397
+
1398
+ # Add the missing features
1399
+ features["Dialogue_Act_Base"] = datasets.Value("string")
1400
+ features["Label_Base"] = datasets.Value("string")
1401
+
1402
  features["Idx"] = datasets.Value("int32")
1403
  features["Speaker_Id"] = datasets.features.ClassLabel(names=self.config.speakers)
1404
  # if self.config.name == "": # This is the name of the configuration selected in BUILDER_CONFIGS above