Datasets:
rcds
/

ninabaum commited on
Commit
30c6cda
1 Parent(s): 223a6bd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +226 -1
README.md CHANGED
@@ -1,3 +1,228 @@
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: OcclusionSwissJudgmentPrediction
17
+ size_categories:
18
+ - 1K<n<10K
19
+ source_datasets:
20
+ - extended|swiss_judgment_prediction
21
+ tags:
22
+ - explainability-judgment-prediction
23
+ - occlusion
24
+ task_categories:
25
+ - text-classification
26
+ - other
27
+ task_ids: []
28
  ---
29
+
30
+ # Dataset Card for "OcclusionSwissJudgmentPrediction": An implementation of an occlusion based explainability method for Swiss judgment prediction
31
+
32
+ ## Table of Contents
33
+ - [Table of Contents](#table-of-contents)
34
+ - [Dataset Summary](#dataset-summary)
35
+ - [Documents](#documents)
36
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
37
+ - [Languages](#languages)
38
+ - [Dataset **str**ucture](#dataset-**str**ucture)
39
+ - [Data Instances](#data-instances)
40
+ - [Data Fields](#data-fields)
41
+ - [Data Splits](#data-splits)
42
+ - [Dataset Creation](#dataset-creation)
43
+ - [Curation Rationale](#curation-rationale)
44
+ - [Source Data](#source-data)
45
+ - [Annotations](#annotations)
46
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
47
+ - [Additional Information](#additional-information)
48
+ - [Dataset Curators](#dataset-curators)
49
+ - [Licensing Information](#licensing-information)
50
+ - [Citation Information](#citation-information)
51
+ - [Contributions](#contributions)
52
+
53
+ ## Dataset Summary
54
+
55
+ This dataset contains an implementation of occlusion for the SwissJudgmentPrediction task.
56
+
57
+ ### Documents
58
+ Occlusion-Swiss-Judgment-Prediction is a subset of the [Swiss-Judgment-Prediction](https://huggingface.co/datasets/swiss_judgment_prediction) dataset.
59
+ 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. Occlusion-Swiss-Judgment-Prediction extends this dataset by adding sentence splitting with explainability labels.
60
+ ### Supported Tasks and Leaderboards
61
+
62
+ OcclusionSwissJudgmentPrediction can be used for performing the occlusion in the legal judgment prediction task.
63
+
64
+ ### Languages
65
+
66
+ 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.
67
+
68
+ ## Dataset structure
69
+
70
+ ### Data Instances
71
+ #### Multilingual use of the dataset
72
+
73
+ When the dataset is used in a multilingual setting selecting the the 'all_languages' flag:
74
+
75
+ ```python
76
+ from datasets import load_dataset
77
+ dataset = load_dataset('occlusion_swiss_judgment_prediction', 'all_languages')```
78
+
79
+
80
+ For occlusion:
81
+
82
+ ```json
83
+ {
84
+ "id": 57542,
85
+ "year": 2017,
86
+ "label": "dismissal",
87
+ "language": "de",
88
+ "region": "Espace_Mittelland",
89
+ "canton": "BE",
90
+ "legal_area": "social_law",
91
+ "explainability_label": "Supports judgment",
92
+ "occluded_text": "Mit Entscheid vom 4. Mai 2017 hiess das Verwaltungsgericht des Kantons Bern die Beschwerde teilweise gut, hob die angefochtene Verf\u00fcgung auf und wies die Sache an die IV-Stelle zur\u00fcck, damit sie, nach Vornahme der Abkl\u00e4rungen im Sinne der Erw\u00e4gungen, \u00fcber den Rentenanspruch neu verf\u00fcge",
93
+ "text": "Sachverhalt: A. Die 1987 geborene, aus Bolivien stammende A.A._ leidet an einer pr\u00e4natalen Retinopathie und einer dadurch bedingten schweren Sehbehinderung beidseits. Im Dezember 2003 reiste sie in die Schweiz ein. Im Mai 2007 verheiratete sie sich mit B.A._. Am 22. Juni 2007 meldete sie sich bei der Invalidenversicherung zum Leistungsbezug an. Am 6. Februar 2008 lehnte die IV-Stelle Bern das Leistungsgesuch verf\u00fcgungsweise ab, weil die versicherungsm\u00e4ssigen Voraussetzungen nicht erf\u00fcllt seien. Am 22. Oktober 2009 stellte die Versicherte ein neues Leistungsgesuch, auf welches die IV-Stelle mit Verf\u00fcgung vom 16. Dezember 2009 nicht e**int**rat. Am 27. Juli 2010 meldete sich A.A._ erneut bei der Invalidenversicherung zum Leistungsbezug an, wobei sie eine Verschlechterung der Sehkraft geltend machte. Mit Verf\u00fcgung vom 10. November 2010 sprach ihr die IV-Stelle ab 1. August 2010 eine Entsch\u00e4digung f\u00fcr leichte Hilflosigkeit zu. Soweit das Gesuch den Invalidenrentenanspruch betraf, trat die IV-Stelle darauf nicht ein (Verf\u00fcgung vom 19. November 2010). Im Juli 2011 erteilte die IV-Stelle Kostengutsprache f\u00fcr berufliche Eingliederungsmassnahmen, welche die Versicherte vorzeitig abbrach. Mit Verf\u00fcgung vom 27. Januar 2016 er\u00f6ffnete die IV-Stelle der Versicherten, dass sie keinen Anspruch auf eine Invalidenrente habe. Der Versicherungsfall sei bereits vor der Einreise in die Schweiz eingetreten. B. A.A._ liess Beschwerde einreichen mit dem Rechtsbegehren, unter Aufhebung der Verf\u00fcgung vom 27. Januar 2016 sei ihr eine ausserordentliche Invalidenrente zuzusprechen. . C. Die IV-Stelle f\u00fchrt Beschwerde in \u00f6ffentlich-rechtlichen Angelegenheiten mit dem Antrag, der vorinstanzliche Entscheid sei aufzuheben. "
94
+ }
95
+
96
+ ```
97
+
98
+ #### Monolingual use of the dataset
99
+
100
+ When the dataset is used in a monolingual setting selecting the ISO language code for one of the 3 supported languages. For example:
101
+
102
+ ```python
103
+ from datasets import load_dataset
104
+ dataset = load_dataset('occlusion_swiss_judgment_prediction', 'de_1')
105
+ ```
106
+ For occlusion:
107
+
108
+ ```json
109
+ {
110
+ "id": 57542,
111
+ "year": 2017,
112
+ "label": "dismissal",
113
+ "language": "de",
114
+ "region": "Espace_Mittelland",
115
+ "canton": "BE",
116
+ "legal_area": "social_law",
117
+ "explainability_label": "Supports judgment",
118
+ "occluded_text": "Mit Entscheid vom 4. Mai 2017 hiess das Verwaltungsgericht des Kantons Bern die Beschwerde teilweise gut, hob die angefochtene Verf\u00fcgung auf und wies die Sache an die IV-Stelle zur\u00fcck, damit sie, nach Vornahme der Abkl\u00e4rungen im Sinne der Erw\u00e4gungen, \u00fcber den Rentenanspruch neu verf\u00fcge",
119
+ "text": "Sachverhalt: A. Die 1987 geborene, aus Bolivien stammende A.A._ leidet an einer pr\u00e4natalen Retinopathie und einer dadurch bedingten schweren Sehbehinderung beidseits. Im Dezember 2003 reiste sie in die Schweiz ein. Im Mai 2007 verheiratete sie sich mit B.A._. Am 22. Juni 2007 meldete sie sich bei der Invalidenversicherung zum Leistungsbezug an. Am 6. Februar 2008 lehnte die IV-Stelle Bern das Leistungsgesuch verf\u00fcgungsweise ab, weil die versicherungsm\u00e4ssigen Voraussetzungen nicht erf\u00fcllt seien. Am 22. Oktober 2009 stellte die Versicherte ein neues Leistungsgesuch, auf welches die IV-Stelle mit Verf\u00fcgung vom 16. Dezember 2009 nicht e**int**rat. Am 27. Juli 2010 meldete sich A.A._ erneut bei der Invalidenversicherung zum Leistungsbezug an, wobei sie eine Verschlechterung der Sehkraft geltend machte. Mit Verf\u00fcgung vom 10. November 2010 sprach ihr die IV-Stelle ab 1. August 2010 eine Entsch\u00e4digung f\u00fcr leichte Hilflosigkeit zu. Soweit das Gesuch den Invalidenrentenanspruch betraf, trat die IV-Stelle darauf nicht ein (Verf\u00fcgung vom 19. November 2010). Im Juli 2011 erteilte die IV-Stelle Kostengutsprache f\u00fcr berufliche Eingliederungsmassnahmen, welche die Versicherte vorzeitig abbrach. Mit Verf\u00fcgung vom 27. Januar 2016 er\u00f6ffnete die IV-Stelle der Versicherten, dass sie keinen Anspruch auf eine Invalidenrente habe. Der Versicherungsfall sei bereits vor der Einreise in die Schweiz eingetreten. B. A.A._ liess Beschwerde einreichen mit dem Rechtsbegehren, unter Aufhebung der Verf\u00fcgung vom 27. Januar 2016 sei ihr eine ausserordentliche Invalidenrente zuzusprechen. . C. Die IV-Stelle f\u00fchrt Beschwerde in \u00f6ffentlich-rechtlichen Angelegenheiten mit dem Antrag, der vorinstanzliche Entscheid sei aufzuheben. "
120
+ }
121
+
122
+ ```
123
+
124
+ ### Data Fields
125
+
126
+ The following data fields are provided for documents (train, validation):
127
+
128
+ id: (**int**) a unique identifier of the for the document
129
+ year: (**int**) the publication year
130
+ text: (**str**) the facts of the case
131
+ label: (class label) the judgment outcome: 0 (dismissal) or 1 (approval)
132
+ language: (**str**) one of (de, fr, it)
133
+ region: (**str**) the region of the lower court
134
+ canton: (**str**) the canton of the lower court
135
+ legal area: (**str**) the legal area of the case
136
+
137
+ The following data fields are provided for documents (occ_test):
138
+
139
+ id: (**int**) a unique identifier of the for the document
140
+ year: (**int**) the publication year
141
+ label: (**str**) the judgment outcome: dismissal or approval
142
+ language: (**str**) one of (de, fr, it)
143
+ region: (**str**) the region of the lower court
144
+ canton: (**str**) the canton of the lower court
145
+ legal area: (**str**) the legal area of the case
146
+ explainability_label (**str**): the explainability label assigned to the occluded text: Supports judgment, Opposes judgment, Neutral, Baseline
147
+ occluded_text (**str**): the occluded text
148
+ text: (**str**) the facts of the case w/o the occluded text except for cases w/ explainability label "Baseline" (contain entire facts)
149
+
150
+ Note that Baseline cases are only contained in version 1 of the occlusion test set, since they do not change from experiment to experiment.
151
+
152
+ ### Data Splits
153
+ Language | Subset | Number of Documents (Training/Validation/Test)
154
+ German| de_1| 35'452 / 4'705 / 427
155
+ German| de_2| 35'452 / 4'705 / 1366
156
+ German| de_3| 35'452 / 4'705 / 3567
157
+ German| de_4| 35'452 / 4'705 / 7235
158
+ French | fr_1 | 21'179 / 3'095 / 307
159
+ French | fr_2 | 21'179 / 3'095 / 854
160
+ French | fr_3 | 21'179 / 3'095 / 1926
161
+ French | fr_4 | 21'179 / 3'095 / 3279
162
+ Italian | it_1| 3'072 / 408 / 299
163
+ Italian | it_2| 3'072 / 408 / 919
164
+ Italian | it_3| 3'072 / 408 / 2493
165
+ Italian | it_4| 3'072 / 408 / 5733
166
+ All | all | 59'709 / 8'208 / 28375
167
+
168
+ ## Dataset Creation
169
+
170
+ ### Curation Rationale
171
+
172
+ The dataset was curated by Niklaus et al. (2021) and Nina Baumgartner.
173
+
174
+ ### Source Data
175
+
176
+ #### Initial Data Collection and Normalization
177
+
178
+ 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.
179
+
180
+ #### Who are the source language producers?
181
+
182
+ 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.
183
+
184
+ ### Annotations
185
+
186
+ #### Annotation process
187
+
188
+ The decisions have been annotated with the binarized judgment outcome using parsers and regular expressions. In addition 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, splitting sentences/group of sentences and annotated with one of the following explainability label: Supports judgment, Opposes Judgment and Neutral. The test sets have each sentence/ group of sentence once occluded, enabling an analysis of the changes in the model's performance. The legal expert annotation were conducted from April 2020 to August 2020.
189
+
190
+ #### Who are the annotators?
191
+
192
+ 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).
193
+
194
+ ### Personal and Sensitive Information
195
+
196
+ 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.
197
+
198
+ ## Additional Information
199
+
200
+ ### Dataset Curators
201
+
202
+ Niklaus et al. (2021) and Nina Baumgartner
203
+
204
+ ### Licensing Information
205
+
206
+ 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)
207
+
208
+ © Swiss Federal Supreme Court, 2000-2020
209
+
210
+ 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.
211
+
212
+ Source: https://www.bger.ch/files/live/sites/bger/files/pdf/de/urteilsveroeffentlichung_d.pdf
213
+ ### Citation Information
214
+
215
+ ```
216
+ @misc{baumgartner_nina_occlusion_2019,
217
+ title = {From Occlusion to Transparancy – An Occlusion-Based Explainability Approach for Legal Judgment Prediction in Switzerland},
218
+ shorttitle = {From Occlusion to Transparancy},
219
+ 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.},
220
+ author = {{Baumgartner, Nina}},
221
+ year = {2022},
222
+ langid = {english}
223
+ }
224
+ ```
225
+
226
+ ### Contributions
227
+
228
+ Thanks to [@ninabaumgartner](https://github.com/ninabaumgartner) for adding this dataset.