Datasets:

Languages:
English
ArXiv:
License:
kiddothe2b commited on
Commit
3efecce
1 Parent(s): 8cd0988

Update medical-bios.py

Browse files
Files changed (1) hide show
  1. medical-bios.py +6 -5
medical-bios.py CHANGED
@@ -39,6 +39,7 @@ class MedicalBIOSConfig(datasets.BuilderConfig):
39
  ):
40
  """BuilderConfig for Medical BIOS.
41
  Args:
 
42
  url: `string`, url for the original project
43
  data_url: `string`, url to download the zip file from
44
  data_file: `string`, filename for data set
@@ -47,8 +48,8 @@ class MedicalBIOSConfig(datasets.BuilderConfig):
47
  **kwargs: keyword arguments forwarded to super.
48
  """
49
  super(MedicalBIOSConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
50
- self.url = url
51
  self.label_classes = label_classes
 
52
  self.data_url = data_url
53
  self.citation = citation
54
 
@@ -161,8 +162,8 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
161
  example["rationales"] = data["rationales"]
162
  example["contrastive_rationales"] = data["contrastive_rationales"]
163
  else:
164
- example["foil"] = None
165
- example["words"] = None
166
- example["rationales"] = None
167
- example["contrastive_rationales"] = None
168
  yield id_, example
 
39
  ):
40
  """BuilderConfig for Medical BIOS.
41
  Args:
42
+ label_classes: `list`, list of label classes
43
  url: `string`, url for the original project
44
  data_url: `string`, url to download the zip file from
45
  data_file: `string`, filename for data set
 
48
  **kwargs: keyword arguments forwarded to super.
49
  """
50
  super(MedicalBIOSConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
 
51
  self.label_classes = label_classes
52
+ self.url = url
53
  self.data_url = data_url
54
  self.citation = citation
55
 
 
162
  example["rationales"] = data["rationales"]
163
  example["contrastive_rationales"] = data["contrastive_rationales"]
164
  else:
165
+ example["foil"] = 'N/A'
166
+ example["words"] = ['N/A']
167
+ example["rationales"] = [0]
168
+ example["contrastive_rationales"] = [0]
169
  yield id_, example