kiddothe2b
commited on
Commit
•
d03ca08
1
Parent(s):
5dedfec
Update medical-bios.py
Browse files- medical-bios.py +23 -35
medical-bios.py
CHANGED
@@ -21,7 +21,7 @@ import textwrap
|
|
21 |
import datasets
|
22 |
|
23 |
|
24 |
-
MAIN_CITATION = """
|
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{
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
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{
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
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["
|
209 |
-
example["
|
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
|