kiddothe2b commited on
Commit
d03ca08
1 Parent(s): 5dedfec

Update medical-bios.py

Browse files
Files changed (1) hide show
  1. medical-bios.py +23 -35
medical-bios.py CHANGED
@@ -21,7 +21,7 @@ import textwrap
21
  import datasets
22
 
23
 
24
- MAIN_CITATION = """NA"""
25
  _DESCRIPTION = """NA"""
26
  MAIN_PATH = 'https://huggingface.co/datasets/coastalcph/medical-bios/resolve/main'
27
 
@@ -76,22 +76,16 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
76
  url="https://github.com/microsoft/biosbias",
77
  citation=textwrap.dedent(
78
  """\
79
- @inproceedings{10.1145/3287560.3287572,
80
- author = {De-Arteaga, Maria and Romanov, Alexey and Wallach, Hanna and Chayes,
81
- Jennifer and Borgs, Christian and Chouldechova, Alexandra and Geyik, Sahin
82
- and Kenthapadi, Krishnaram and Kalai, Adam Tauman},
83
- title = {Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Setting},
84
- year = {2019},
85
- isbn = {9781450361255},
86
- publisher = {Association for Computing Machinery},
87
- address = {New York, NY, USA},
88
- url = {https://doi.org/10.1145/3287560.3287572},
89
- doi = {10.1145/3287560.3287572},
90
- booktitle = {Proceedings of the Conference on Fairness, Accountability, and Transparency},
91
- pages = {120–128},
92
- numpages = {9},
93
- location = {Atlanta, GA, USA},
94
- series = {FAT* '19}
95
  }"""
96
  ),
97
  ),
@@ -113,22 +107,16 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
113
  url="https://github.com/microsoft/biosbias",
114
  citation=textwrap.dedent(
115
  """\
116
- @inproceedings{10.1145/3287560.3287572,
117
- author = {De-Arteaga, Maria and Romanov, Alexey and Wallach, Hanna and Chayes,
118
- Jennifer and Borgs, Christian and Chouldechova, Alexandra and Geyik, Sahin
119
- and Kenthapadi, Krishnaram and Kalai, Adam Tauman},
120
- title = {Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Setting},
121
- year = {2019},
122
- isbn = {9781450361255},
123
- publisher = {Association for Computing Machinery},
124
- address = {New York, NY, USA},
125
- url = {https://doi.org/10.1145/3287560.3287572},
126
- doi = {10.1145/3287560.3287572},
127
- booktitle = {Proceedings of the Conference on Fairness, Accountability, and Transparency},
128
- pages = {120–128},
129
- numpages = {9},
130
- location = {Atlanta, GA, USA},
131
- series = {FAT* '19}
132
  }"""
133
  ),
134
  ),
@@ -205,8 +193,8 @@ class XAIFairness(datasets.GeneratorBasedBuilder):
205
  if self.config.name == "rationales":
206
  example["foil"] = data["foil"]
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
 
21
  import datasets
22
 
23
 
24
+ MAIN_CITATION = """https://aclanthology.org/2023.emnlp-main.427/"""
25
  _DESCRIPTION = """NA"""
26
  MAIN_PATH = 'https://huggingface.co/datasets/coastalcph/medical-bios/resolve/main'
27
 
 
76
  url="https://github.com/microsoft/biosbias",
77
  citation=textwrap.dedent(
78
  """\
79
+ @inproceedings{eberle-etal-2023-rather,
80
+ title = "Rather a Nurse than a Physician - Contrastive Explanations under Investigation",
81
+ author = "Eberle, Oliver and
82
+ Chalkidis, Ilias and
83
+ Cabello, Laura and
84
+ Brandl, Stephanie",
85
+ booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
86
+ year = "2023",
87
+ publisher = "Association for Computational Linguistics",
88
+ url = "https://aclanthology.org/2023.emnlp-main.427",
 
 
 
 
 
 
89
  }"""
90
  ),
91
  ),
 
107
  url="https://github.com/microsoft/biosbias",
108
  citation=textwrap.dedent(
109
  """\
110
+ @inproceedings{eberle-etal-2023-rather,
111
+ title = "Rather a Nurse than a Physician - Contrastive Explanations under Investigation",
112
+ author = "Eberle, Oliver and
113
+ Chalkidis, Ilias and
114
+ Cabello, Laura and
115
+ Brandl, Stephanie",
116
+ booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
117
+ year = "2023",
118
+ publisher = "Association for Computational Linguistics",
119
+ url = "https://aclanthology.org/2023.emnlp-main.427",
 
 
 
 
 
 
120
  }"""
121
  ),
122
  ),
 
193
  if self.config.name == "rationales":
194
  example["foil"] = data["foil"]
195
  example["words"] = data["words"]
196
+ example["rationales"] = data["rationales"]
197
+ example["contrastive_rationales"] = data["contrastive_rationales"]
198
  example["annotations"] = data["annotations"]
199
  example["contrastive_annotations"] = data["contrastive_annotations"]
200
  yield id_, example