jfrenz commited on
Commit
9f21a1c
1 Parent(s): 0cd3726

updated readme und dummy test

Browse files
README.md CHANGED
@@ -5,29 +5,29 @@ annotations_creators:
5
  language_creators:
6
  - found
7
  languages:
8
- - en,
9
- - da,
10
- - de,
11
- - nl,
12
- - sv,
13
- - bg,
14
- - cs,
15
- - hr,
16
- - pl,
17
- - sk,
18
- - sl,
19
- - es,
20
- - fr,
21
- - it,
22
- - pt,
23
- - ro,
24
- - et,
25
- - fi,
26
- - hu,
27
- - lt,
28
- - lv,
29
- - el,
30
- - mt,
31
  licenses:
32
  - cc-by-4.0
33
  multilinguality:
@@ -58,7 +58,7 @@ task_ids:
58
  ## Table of Contents
59
  - [Dataset Description](#dataset-description)
60
  - [Dataset Summary](#dataset-summary)
61
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
62
  - [Languages](#languages)
63
  - [Dataset Structure](#dataset-structure)
64
  - [Data Instances](#data-instances)
@@ -81,37 +81,137 @@ task_ids:
81
 
82
  ## Dataset Description
83
 
84
- - **Homepage:**
85
- - **Repository:**
86
- - **Paper:**
87
- - **Leaderboard:**
88
- - **Point of Contact:**
89
 
90
  ### Dataset Summary
91
 
92
- [More Information Needed]
 
93
 
94
- ### Supported Tasks and Leaderboards
95
 
96
- [More Information Needed]
 
 
 
 
 
 
 
 
 
97
 
98
  ### Languages
99
 
100
- [More Information Needed]
101
 
102
  ## Dataset Structure
103
 
104
  ### Data Instances
105
 
106
- [More Information Needed]
107
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  ### Data Fields
109
 
110
  [More Information Needed]
111
 
112
  ### Data Splits
113
 
114
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ## Dataset Creation
117
 
 
5
  language_creators:
6
  - found
7
  languages:
8
+ - en
9
+ - da
10
+ - de
11
+ - nl
12
+ - sv
13
+ - bg
14
+ - cs
15
+ - hr
16
+ - pl
17
+ - sk
18
+ - sl
19
+ - es
20
+ - fr
21
+ - it
22
+ - pt
23
+ - ro
24
+ - et
25
+ - fi
26
+ - hu
27
+ - lt
28
+ - lv
29
+ - el
30
+ - mt
31
  licenses:
32
  - cc-by-4.0
33
  multilinguality:
 
58
  ## Table of Contents
59
  - [Dataset Description](#dataset-description)
60
  - [Dataset Summary](#dataset-summary)
61
+ - [Supported Tasks](#supported-tasks)
62
  - [Languages](#languages)
63
  - [Dataset Structure](#dataset-structure)
64
  - [Data Instances](#data-instances)
 
81
 
82
  ## Dataset Description
83
 
84
+ - **Repository: https://git.rwth-aachen.de/johanna.frenz/legalglue**
 
 
 
 
85
 
86
  ### Dataset Summary
87
 
88
+ The "Legal General Language Understanding Evaluation" (LegalGLUE) dataset was created as part of a bachelor thesis.
89
+ It consists of four already existing datasets covering three task types and a total of 23 different languages.
90
 
91
+ ### Supported Tasks
92
 
93
+ <table>
94
+ <tr><td>Dataset</td><td>Source</td><td>Task Type</td><td>Languages</td><tr>
95
+
96
+
97
+ <tr><td>German_LER</td><td> <a href="https://arxiv.org/abs/2003.13016">Leitner et al.</a></td><td>Named Entity Recognition</td><td>German</td></tr>
98
+ <tr><td>LeNER_Br</td><td> <a href="https://github.com/peluz/lener-br"> de Araujo et al., 2018</a></td><td>Named Entity Recognition</td><td> Portuguese </td></tr>
99
+ <tr><td>SwissJudgmentPrediction</td><td> <a href="https://arxiv.org/abs/2110.00806">Niklaus et al.</a> </td><td>Binary Text Classification</td><td>German, French, Italian</td></tr>
100
+ <tr><td>MultEURLEX</td><td> <a href="https://arxiv.org/abs/2109.00904">Chalkidis et al. </a> </td><td>Multi-label Text Classification</td><td>23 languages (see below)</td></tr>
101
+
102
+ </table>
103
 
104
  ### Languages
105
 
 
106
 
107
  ## Dataset Structure
108
 
109
  ### Data Instances
110
 
111
+ ####German_LER
112
+
113
+ German_LER example
114
+
115
+ ```json
116
+ {
117
+ 'id': '66722',
118
+ 'tokens':['4.', 'Die', 'Kostenentscheidung', 'für', 'das', 'gerichtliche', 'Antragsverfahren', 'beruht', 'auf', '§', '21', 'Abs.', '2', 'Satz', '1', 'i.', 'V.', 'm.', '§', '20', 'Abs.', '1', 'Satz', '1', 'WBO', '.'],
119
+ 'ner_tags': [38, 38, 38, 38, 38, 38, 38, 38, 38, 3, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 38]
120
+ }
121
+
122
+ ```
123
+ ####LeNER-Br
124
+
125
+ LeNER-Br example
126
+
127
+ ```json
128
+ {
129
+ 'id': '7826',
130
+ 'tokens': ['Firmado', 'por', 'assinatura', 'digital', '(', 'MP', '2.200-2/2001', ')', 'JOSÉ', 'ROBERTO', 'FREIRE', 'PIMENTA', 'Ministro', 'Relator', 'fls', '.', 'PROCESSO', 'Nº', 'TST-RR-1603-79.2010.5.20.0001'],
131
+ 'ner_tags': [0, 0, 0, 0, 0, 9, 10, 0, 3, 4, 4, 4, 0, 0, 0, 0, 11, 12, 12]}
132
+ ```
133
+
134
+ ####SwissJudgmentPrediction
135
+
136
+ swissJudgmentPrediction_de example
137
+
138
+ ```json
139
+ {
140
+ 'id': 48755,
141
+ 'year': 2014,
142
+ 'text': "Sachverhalt: A. X._ fuhr am 25. Juli 2012 bei Mülligen mit seinem Personenwagen auf dem zweiten Überholstreifen der Autobahn A1 in Richtung Zürich. Gemäss Anklage schloss er auf einen Lieferwagen auf und schwenkte vom zweiten auf den ersten Überholstreifen aus. Danach fuhr er an zwei Fahrzeugen rechts vorbei und wechselte auf die zweite Überholspur zurück. B. Das Obergericht des Kantons Aargau erklärte X._ am 14. Januar 2014 zweitinstanzlich der groben Verletzung der Verkehrsregeln schuldig. Es bestrafte ihn mit einer bedingten Geldstrafe von 30 Tagessätzen zu Fr. 430.-- und einer Busse von Fr. 3'000.--. C. X._ führt Beschwerde in Strafsachen. Er beantragt, er sei von Schuld und Strafe freizusprechen. Eventualiter sei die Sache an die Vorinstanz zurückzuweisen. ",
143
+ 'label': 0,
144
+ 'language': 'de',
145
+ 'region': 'Northwestern Switzerland',
146
+ 'canton': 'ag',
147
+ 'legal area': 'penal law'
148
+ }
149
+ ```
150
+
151
+ ####MultiEURLEX
152
+
153
+ Monolingual example out of the MultiEURLEX-Datase
154
+
155
+ ```json
156
+ {
157
+ 'celex_id': '32002R0130',
158
+ 'text': 'Verordnung (EG) Nr. 130/2002 der Kommission\nvom 24. Januar 2002\nbezüglich der im Rahmen der Auss...',
159
+ 'labels': [3, 17, 5]}
160
+ ```
161
+
162
+ Multilingual example out of the MultiEURLEX-Dataset
163
+ ```json
164
+ {
165
+ 'celex_id': '32002R0130',
166
+ 'text': {
167
+ 'bg': None,
168
+ 'cs': None,
169
+ 'da': 'Kommissionens ...',
170
+ 'de': 'Verordnung ... ',
171
+ 'el': '...',
172
+ 'en': '...',
173
+ ...
174
+ },
175
+ 'labels': [3, 17, 5]
176
+ }
177
+ ```
178
  ### Data Fields
179
 
180
  [More Information Needed]
181
 
182
  ### Data Splits
183
 
184
+ <table>
185
+ <tr><th>Dataset</th><th> Language </th> <th> ISO code </th> <th> Number of Documents train/dev/test </th> </tr>
186
+ <tr><td>German-LER</td><td> German </td> <td> de </td> <td> 66723 / - / - </td> </tr>
187
+ <tr><td>LeNER-Br</td><td> Portuguese </td> <td> pt </td> <td> 7828 / 1177 / 1390 </td> </tr>
188
+ <tr><td rowspan="3">SwissJudgmentPrediction</td><td> German </td> <td> <b>de</b> </td> <td> 35458 / 4705 / 9725 </td> </tr>
189
+ <tr><td> French </td> <td> <b>fr</b> </td> <td> 21179 / 3095 / 6820 </td> </tr>
190
+ <tr><td> Italian </td> <td> <b>it</b> </td> <td> 3072 / 408 / 812 </td> </tr>
191
+ <tr><td rowspan="23">MultiEURLEX</td><td> English </td> <td> <b>en</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
192
+ <tr><td> German </td> <td> <b>de</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
193
+ <tr><td> French </td> <td> <b>fr</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
194
+ <tr><td> Italian </td> <td> <b>it</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
195
+ <tr><td> Spanish </td> <td> <b>es</b> </td> <td> 52,785 / 5,000 / 5,000 </td> </tr>
196
+ <tr><td> Polish </td> <td> <b>pl</b> </td> <td> 23,197 / 5,000 / 5,000 </td> </tr>
197
+ <tr><td> Romanian </td> <td> <b>ro</b> </td> <td> 15,921 / 5,000 / 5,000 </td> </tr>
198
+ <tr><td> Dutch </td> <td> <b>nl</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
199
+ <tr><td> Greek </td> <td> <b>el</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
200
+ <tr><td> Hungarian </td> <td> <b>hu</b> </td> <td> 22,664 / 5,000 / 5,000 </td> </tr>
201
+ <tr><td> Portuguese </td> <td> <b>pt</b> </td> <td> 23,188 / 5,000 / 5,000 </td> </tr>
202
+ <tr><td> Czech </td> <td> <b>cs</b> </td> <td> 23,187 / 5,000 / 5,000 </td> </tr>
203
+ <tr><td> Swedish </td> <td> <b>sv</b> </td> <td> 42,490 / 5,000 / 5,000 </td> </tr>
204
+ <tr><td> Bulgarian </td> <td> <b>bg</b> </td> <td> 15,986 / 5,000 / 5,000 </td> </tr>
205
+ <tr><td> Danish </td> <td> <b>da</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
206
+ <tr><td> Finnish </td> <td> <b>fi</b> </td> <td> 42,497 / 5,000 / 5,000 </td> </tr>
207
+ <tr><td> Slovak </td> <td> <b>sk</b> </td> <td> 15,986 / 5,000 / 5,000 </td> </tr>
208
+ <tr><td> Lithuanian </td> <td> <b>lt</b> </td> <td> 23,188 / 5,000 / 5,000 </td> </tr>
209
+ <tr><td> Croatian </td> <td> <b>hr</b> </td> <td> 7,944 / 2,500 / 5,000 </td> </tr>
210
+ <tr><td> Slovene </td> <td> <b>sl</b> </td> <td> 23,184 / 5,000 / 5,000 </td> </tr>
211
+ <tr><td> Estonian </td> <td> <b>et</b> </td> <td> 23,126 / 5,000 / 5,000 </td> </tr>
212
+ <tr><td> Latvian </td> <td> <b>lv</b> </td> <td> 23,188 / 5,000 / 5,000 </td> </tr>
213
+ <tr><td> Maltese </td> <td> <b>mt</b> </td> <td> 17,521 / 5,000 / 5,000 </td> </tr>
214
+ </table>
215
 
216
  ## Dataset Creation
217
 
dummy/multi_eurlex_all_languages/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6973485a921fc2bcb4180b60b74eb62761e0eddee0362e9f2b1005f5b3de57b1
3
+ size 504813
dummy/multi_eurlex_bg/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e06ccb40a82e92b268948d9f4c9c8c39cd6af832b7ff81199a296a197f3b96a
3
+ size 504813