Datasets:

Languages:
English
ArXiv:
License:
kiddothe2b commited on
Commit
9b72820
1 Parent(s): c920bb0

Update medical-bios.py

Browse files
Files changed (1) hide show
  1. medical-bios.py +5 -1
medical-bios.py CHANGED
@@ -142,7 +142,9 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
142
  "foil": datasets.ClassLabel(names=self.config.label_classes),
143
  "words": datasets.Sequence(datasets.Value("string")),
144
  "rationale": datasets.Sequence(datasets.Value("int8")),
145
- "contrastive_rationale": datasets.Sequence(datasets.Value("int8"))}
 
 
146
  return datasets.DatasetInfo(
147
  description=self.config.description,
148
  features=datasets.Features(features),
@@ -205,4 +207,6 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
205
  example["words"] = data["words"]
206
  example["rationale"] = data["rationale"]
207
  example["contrastive_rationale"] = data["contrastive_rationale"]
 
 
208
  yield id_, example
 
142
  "foil": datasets.ClassLabel(names=self.config.label_classes),
143
  "words": datasets.Sequence(datasets.Value("string")),
144
  "rationale": datasets.Sequence(datasets.Value("int8")),
145
+ "contrastive_rationale": datasets.Sequence(datasets.Value("int8")),
146
+ "annotations": datasets.Sequence(datasets.Sequence(datasets.Value("int8"))),
147
+ "contrastive_annotations": datasets.Sequence(datasets.Sequence(datasets.Value("int8")))}
148
  return datasets.DatasetInfo(
149
  description=self.config.description,
150
  features=datasets.Features(features),
 
207
  example["words"] = data["words"]
208
  example["rationale"] = data["rationale"]
209
  example["contrastive_rationale"] = data["contrastive_rationale"]
210
+ example["annotations"] = data["annotations"]
211
+ example["contrastive_annotations"] = data["contrastive_annotations"]
212
  yield id_, example