ninabaum commited on
Commit
7816fbe
1 Parent(s): 184adc6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +213 -1
README.md CHANGED
@@ -1,3 +1,215 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language:
5
+ - de
6
+ - fr
7
+ - it
8
+ - en
9
+ language_creators:
10
+ - expert-generated
11
+ - found
12
+ license:
13
+ - cc-by-sa-4.0
14
+ multilinguality:
15
+ - multilingual
16
+ pretty_name: LowerCourtInsertionSwissJudgmentPrediction
17
+ size_categories:
18
+ - 1K<n<10K
19
+ source_datasets:
20
+ - extended|swiss_judgment_prediction
21
+ tags:
22
+ - explainability-judgment-prediction
23
+ task_categories:
24
+ - text-classification
25
+ - other
26
+ task_ids: []
27
  ---
28
+
29
+ # Dataset Card for "LowerCourtInsertionSwissJudgmentPrediction": An implementation of lower court insertion bias analysis for Swiss judgment prediction
30
+
31
+ ## Table of Contents
32
+ - [Table of Contents](#table-of-contents)
33
+ - [Dataset Summary](#dataset-summary)
34
+ - [Documents](#documents)
35
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
36
+ - [Languages](#languages)
37
+ - [Dataset **str**ucture](#dataset-**str**ucture)
38
+ - [Data Instances](#data-instances)
39
+ - [Data Fields](#data-fields)
40
+ - [Data Splits](#data-splits)
41
+ - [Dataset Creation](#dataset-creation)
42
+ - [Curation Rationale](#curation-rationale)
43
+ - [Source Data](#source-data)
44
+ - [Annotations](#annotations)
45
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
46
+ - [Additional Information](#additional-information)
47
+ - [Dataset Curators](#dataset-curators)
48
+ - [Licensing Information](#licensing-information)
49
+ - [Citation Information](#citation-information)
50
+ - [Contributions](#contributions)
51
+
52
+ ## Dataset Summary
53
+
54
+ This dataset contains an implementation of lower-court-insertion for the SwissJudgmentPrediction task.
55
+
56
+ ### Documents
57
+ Lower-Court-Insertion-Swiss-Judgment-Prediction is a subset of the [Swiss-Judgment-Prediction](https://huggingface.co/datasets/swiss_judgment_prediction) dataset.
58
+ The Swiss-Judgment-Prediction dataset is a multilingual, diachronic dataset of 85K Swiss Federal Supreme Court (FSCS) cases annotated with the respective binarized judgment outcome (approval/dismissal), the publication year, the legal area and the canton of origin per case. Lower-Court-Insertion-Swiss-Judgment-Prediction extends this dataset by adding lower court insertion.
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ LowerCourtInsertionSwissJudgmentPrediction can be used for performing the LowerCourtInsertion in the legal judgment prediction task.
62
+
63
+ ### Languages
64
+
65
+ Switzerland has four official languages with 3 languages (German, French and Italian) being represented in more than 1000 Swiss Federal Supreme court decisions. The decisions are written by the judges and clerks in the language of the proceedings.
66
+
67
+ ## Dataset structure
68
+
69
+ ### Data Instances
70
+ #### Multilingual use of the dataset
71
+
72
+ When the dataset is used in a multilingual setting selecting the the 'all' flag:
73
+
74
+ ```python
75
+ from datasets import load_dataset
76
+ dataset = load_dataset('rcds/lower_court_insertion_swiss_judgment_prediction', 'all')```
77
+
78
+ For lower_court-insertion:
79
+ ```json
80
+ {
81
+ "id": 59810,
82
+ "year": 2017,
83
+ "label": "approval",
84
+ "language": "de",
85
+ "region": "Central_Switzerland",
86
+ "canton": "LU",
87
+ "legal_area": "social_law",
88
+ "explainability_label": "Lower court",
89
+ "text": "Sachverhalt: A. Die IV-Stelle Luzern sprach dem 1977 geborenen A._ im Anschluss an dessen Besuch einer Sonderschule berufliche Massnahmen und entsprechende Taggelder zu. Im Oktober 1997 (Postaufgabe) meldete sich der Versicherte erneut zum Bezug von Leistungen der Invalidenversicherung an. Im Feststellungsblatt vom 12. Oktober 1998 zum Rentenbeschluss vermerkte die IV-Stelle als Ausgangsbasis \"Jugendinvalidit\u00e4t\"; sodann errechnete sie einen Invalidit\u00e4tsgrad von 85,39 %. Mit Verf\u00fcgung vom 4. Dezember 1998 sprach sie A._ eine ganze Invalidenrente ab 1. Juli 1997 zu. Mit Verf\u00fcgung vom 7. Februar 2003, Mitteilung vom 15. Juni 2007 und Verf\u00fcgung vom 13. Mai 2008 wurde der bisherige Rentenanspruch jeweils (ohne n\u00e4here \u00dcberpr\u00fcfung der entsprechenden Voraussetzungen) best\u00e4tigt. Im Februar 2014 leitete die Verwaltung erneut ein Revisionsverfahren ein. Dabei veranlasste sie insbesondere das Gutachten des Dr. med. B._, Facharzt f\u00fcr Psychiatrie und Psychotherapie beim Regionalen \u00c4rztlichen Dienst (RAD), vom 13. November 2014 (\"neuropsychiatrisch-neuropsychologische Komplexfallabkl\u00e4rung\"). Am 10. Februar 2015 bot die IV-Stelle Luzern A._ Unterst\u00fctzung bei der Stellensuche an. Ab M\u00e4rz 2015 kam sie f\u00fcr zwei Arbeitsversuche w\u00e4hrend jeweils sechs Monaten auf. Zu einer anschliessenden Festanstellung kam es nicht. Nach Durchf\u00fchrung des Vorbescheidverfahrens hob die IV-Stelle mit Verf\u00fcgung vom 2. Juni 2016 die Invalidenrente wiedererw\u00e4gungsweise auf Ende Juli 2016 auf. B. Die dagegen erhobene Beschwerde hiess das Appellationsgericht Basel-Stadt mit Entscheid vom 3. Februar 2017 gut. Es hob die Verf\u00fcgung vom 2. Juni 2016 auf und bejahte einen weiterhin bestehenden Anspruch auf eine ganze Rente. C. Die IV-Stelle beantragt mit Beschwerde in \u00f6ffentlich-rechtlichen Angelegenheiten, der Entscheid vom 3. Februar 2017 sei aufzuheben, und ihre Verf\u00fcgung vom 2. Juni 2016 sei zu best\u00e4tigen. A._ schliesst auf Abweisung der Beschwerde. Das Bundesamt f\u00fcr Sozialversicherungen verzichtet auf eine Vernehmlassung. ",
90
+ "lower_court": "Appellationsgericht Basel-Stadt"
91
+ }
92
+ ```
93
+
94
+ #### Monolingual use of the dataset
95
+
96
+ When the dataset is used in a monolingual setting selecting the ISO language code for one of the 3 supported languages. For example:
97
+
98
+ ```python
99
+ from datasets import load_dataset
100
+ dataset = load_dataset('rcds/lower-court-insertion_swiss_judgment_prediction', 'de')
101
+ ```
102
+
103
+ For lower_court-insertion:
104
+ ```json
105
+ {
106
+ "id": 59810,
107
+ "year": 2017,
108
+ "label": "approval",
109
+ "language": "de",
110
+ "region": "Central_Switzerland",
111
+ "canton": "LU",
112
+ "legal_area": "social_law",
113
+ "explainability_label": "Lower court",
114
+ "text": "Sachverhalt: A. Die IV-Stelle Luzern sprach dem 1977 geborenen A._ im Anschluss an dessen Besuch einer Sonderschule berufliche Massnahmen und entsprechende Taggelder zu. Im Oktober 1997 (Postaufgabe) meldete sich der Versicherte erneut zum Bezug von Leistungen der Invalidenversicherung an. Im Feststellungsblatt vom 12. Oktober 1998 zum Rentenbeschluss vermerkte die IV-Stelle als Ausgangsbasis \"Jugendinvalidit\u00e4t\"; sodann errechnete sie einen Invalidit\u00e4tsgrad von 85,39 %. Mit Verf\u00fcgung vom 4. Dezember 1998 sprach sie A._ eine ganze Invalidenrente ab 1. Juli 1997 zu. Mit Verf\u00fcgung vom 7. Februar 2003, Mitteilung vom 15. Juni 2007 und Verf\u00fcgung vom 13. Mai 2008 wurde der bisherige Rentenanspruch jeweils (ohne n\u00e4here \u00dcberpr\u00fcfung der entsprechenden Voraussetzungen) best\u00e4tigt. Im Februar 2014 leitete die Verwaltung erneut ein Revisionsverfahren ein. Dabei veranlasste sie insbesondere das Gutachten des Dr. med. B._, Facharzt f\u00fcr Psychiatrie und Psychotherapie beim Regionalen \u00c4rztlichen Dienst (RAD), vom 13. November 2014 (\"neuropsychiatrisch-neuropsychologische Komplexfallabkl\u00e4rung\"). Am 10. Februar 2015 bot die IV-Stelle Luzern A._ Unterst\u00fctzung bei der Stellensuche an. Ab M\u00e4rz 2015 kam sie f\u00fcr zwei Arbeitsversuche w\u00e4hrend jeweils sechs Monaten auf. Zu einer anschliessenden Festanstellung kam es nicht. Nach Durchf\u00fchrung des Vorbescheidverfahrens hob die IV-Stelle mit Verf\u00fcgung vom 2. Juni 2016 die Invalidenrente wiedererw\u00e4gungsweise auf Ende Juli 2016 auf. B. Die dagegen erhobene Beschwerde hiess das Appellationsgericht Basel-Stadt mit Entscheid vom 3. Februar 2017 gut. Es hob die Verf\u00fcgung vom 2. Juni 2016 auf und bejahte einen weiterhin bestehenden Anspruch auf eine ganze Rente. C. Die IV-Stelle beantragt mit Beschwerde in \u00f6ffentlich-rechtlichen Angelegenheiten, der Entscheid vom 3. Februar 2017 sei aufzuheben, und ihre Verf\u00fcgung vom 2. Juni 2016 sei zu best\u00e4tigen. A._ schliesst auf Abweisung der Beschwerde. Das Bundesamt f\u00fcr Sozialversicherungen verzichtet auf eine Vernehmlassung. ",
115
+ "lower_court": "Appellationsgericht Basel-Stadt"
116
+ }
117
+ ```
118
+
119
+ ### Data Fields
120
+
121
+ The following data fields are provided for documents (train, validation):
122
+
123
+ id: (**int**) a unique identifier of the for the document
124
+ year: (**int**) the publication year
125
+ text: (**str**) the facts of the case
126
+ label: (class label) the judgment outcome: 0 (dismissal) or 1 (approval)
127
+ language: (**str**) one of (de, fr, it)
128
+ region: (**str**) the region of the lower court
129
+ canton: (**str**) the canton of the lower court
130
+ legal area: (**str**) the legal area of the case
131
+
132
+
133
+ The following data fields are provided for documents (lci_test):
134
+
135
+ id: (**int**) a unique identifier of the for the document
136
+ year: (**int**) the publication year
137
+ label: (**str**) the judgment outcome: dismissal or approval
138
+ language: (**str**) one of (de, fr, it)
139
+ region: (**str**) the region of the lower court
140
+ canton: (**str**) the canton of the lower court
141
+ legal area: (**str**) the legal area of the case
142
+ explainability_label: (**str**) the explainability label assigned to the occluded text: Lower court, Baseline
143
+ text: (**str**) the facts of the case w/o the occluded text except for cases w/ explainability label "Baseline" (contain entire facts)
144
+ lower_court: (**str**) the inserted lower_court (for Baseline there is no insertion)
145
+
146
+ ### Data Splits
147
+ Language | Subset | Number of Documents (Training/Validation/Test)
148
+ German| de| 35'452 / 4'705 / 378
149
+ French | fr| 21'179 / 3'095 / 414
150
+ Italian | it| 3'072 / 408 / 335
151
+ All | all | 59'709 / 8'208 / 1127
152
+
153
+
154
+ ## Dataset Creation
155
+
156
+ ### Curation Rationale
157
+
158
+ The dataset was curated by Niklaus et al. (2021) and Nina Baumgartner.
159
+
160
+ ### Source Data
161
+
162
+ #### Initial Data Collection and Normalization
163
+
164
+ The original data are available at the Swiss Federal Supreme Court (https://www.bger.ch) in unprocessed formats (HTML). The documents were downloaded from the Entscheidsuche portal (https://entscheidsuche.ch) in HTML.
165
+
166
+ #### Who are the source language producers?
167
+
168
+ Switzerland has four official languages with 3 languages (German, French and Italian) being represented in more than 1000 Swiss Federal Supreme court decisions. The decisions are written by the judges and clerks in the language of the proceedings.
169
+
170
+ ### Annotations
171
+
172
+ #### Annotation process
173
+
174
+ The decisions have been annotated with the binarized judgment outcome using parsers and regular expressions. In addition the a subset of the test set (27 cases in German, 24 in French and 23 in Italian spanning over the years 2017 an 20200) was annotated by legal experts with the lower court. These lower court annotations were then use the insert each lower court into each case once (instead of the original lower court). Allowing an analysis of the changes in the models performance for each inserted lower court, giving insight into a possible bias among them. The legal expert annotation were conducted from April 2020 to August 2020.
175
+
176
+ #### Who are the annotators?
177
+
178
+ Joel Niklaus and Adrian Jörg annotated the binarized judgment outcomes. Metadata is published by the Swiss Federal Supreme Court (https://www.bger.ch). The group of legal experts consists of Thomas Lüthi (lawyer), Lynn Grau (law student at master's level) and Angela Stefanelli (law student at master's level).
179
+
180
+ ### Personal and Sensitive Information
181
+
182
+ The dataset contains publicly available court decisions from the Swiss Federal Supreme Court. Personal or sensitive information has been anonymized by the court before publication according to the following guidelines: https://www.bger.ch/home/juridiction/anonymisierungsregeln.html.
183
+
184
+ ## Additional Information
185
+
186
+ ### Dataset Curators
187
+
188
+ Niklaus et al. (2021) and Nina Baumgartner
189
+
190
+ ### Licensing Information
191
+
192
+ We release the data under CC-BY-4.0 which complies with the court licensing (https://www.bger.ch/files/live/sites/bger/files/pdf/de/urteilsveroeffentlichung_d.pdf)
193
+
194
+ © Swiss Federal Supreme Court, 2000-2020
195
+
196
+ The copyright for the editorial content of this website and the consolidated texts, which is owned by the Swiss Federal Supreme Court, is licensed under the Creative Commons Attribution 4.0 International licence. This means that you can re-use the content provided you acknowledge the source and indicate any changes you have made.
197
+
198
+ Source: https://www.bger.ch/files/live/sites/bger/files/pdf/de/urteilsveroeffentlichung_d.pdf
199
+
200
+ ### Citation Information
201
+
202
+ ```
203
+ @misc{baumgartner_nina_occlusion_2019,
204
+ title = {From Occlusion to Transparancy – An Occlusion-Based Explainability Approach for Legal Judgment Prediction in Switzerland},
205
+ shorttitle = {From Occlusion to Transparancy},
206
+ abstract = {Natural Language Processing ({NLP}) models have been used for more and more complex tasks such as Legal Judgment Prediction ({LJP}). A {LJP} model predicts the outcome of a legal case by utilizing its facts. This increasing deployment of Artificial Intelligence ({AI}) in high-stakes domains such as law and the involvement of sensitive data has increased the need for understanding such systems. We propose a multilingual occlusion-based explainability approach for {LJP} in Switzerland and conduct a study on the bias using Lower Court Insertion ({LCI}). We evaluate our results using different explainability metrics introduced in this thesis and by comparing them to high-quality Legal Expert Annotations using Inter Annotator Agreement. Our findings show that the model has a varying understanding of the semantic meaning and context of the facts section, and struggles to distinguish between legally relevant and irrelevant sentences. We also found that the insertion of a different lower court can have an effect on the prediction, but observed no distinct effects based on legal areas, cantons, or regions. However, we did identify a language disparity with Italian performing worse than the other languages due to representation inequality in the training data, which could lead to potential biases in the prediction in multilingual regions of Switzerland. Our results highlight the challenges and limitations of using {NLP} in the judicial field and the importance of addressing concerns about fairness, transparency, and potential bias in the development and use of {NLP} systems. The use of explainable artificial intelligence ({XAI}) techniques, such as occlusion and {LCI}, can help provide insight into the decision-making processes of {NLP} systems and identify areas for improvement. Finally, we identify areas for future research and development in this field in order to address the remaining limitations and challenges.},
207
+ author = {{Baumgartner, Nina}},
208
+ year = {2022},
209
+ langid = {english}
210
+ }
211
+ ```
212
+
213
+ ### Contributions
214
+
215
+ Thanks to [@ninabaumgartner](https://github.com/ninabaumgartner) for adding this dataset.