Datasets:
ArXiv:
multieurlex all-level fix
Browse files- README.md +79 -10
- legalglue.py +1 -1
README.md
CHANGED
@@ -81,7 +81,7 @@ task_ids:
|
|
81 |
|
82 |
## Dataset Description
|
83 |
|
84 |
-
- **Repository
|
85 |
|
86 |
### Dataset Summary
|
87 |
|
@@ -102,7 +102,7 @@ It consists of four already existing datasets covering three task types and a to
|
|
102 |
</table>
|
103 |
|
104 |
### Languages
|
105 |
-
|
106 |
|
107 |
## Dataset Structure
|
108 |
|
@@ -112,6 +112,11 @@ It consists of four already existing datasets covering three task types and a to
|
|
112 |
|
113 |
German_LER example
|
114 |
|
|
|
|
|
|
|
|
|
|
|
115 |
```json
|
116 |
{
|
117 |
'id': '66722',
|
@@ -124,6 +129,12 @@ German_LER example
|
|
124 |
|
125 |
LeNER-Br example
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
```json
|
128 |
{
|
129 |
'id': '7826',
|
@@ -135,6 +146,11 @@ LeNER-Br example
|
|
135 |
|
136 |
swissJudgmentPrediction_de example
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
```json
|
139 |
{
|
140 |
'id': 48755,
|
@@ -150,7 +166,13 @@ swissJudgmentPrediction_de example
|
|
150 |
|
151 |
####MultiEURLEX
|
152 |
|
153 |
-
Monolingual example out of the MultiEURLEX-
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
```json
|
156 |
{
|
@@ -160,6 +182,12 @@ Monolingual example out of the MultiEURLEX-Datase
|
|
160 |
```
|
161 |
|
162 |
Multilingual example out of the MultiEURLEX-Dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
```json
|
164 |
{
|
165 |
'celex_id': '32002R0130',
|
@@ -177,18 +205,59 @@ Multilingual example out of the MultiEURLEX-Dataset
|
|
177 |
```
|
178 |
### Data Fields
|
179 |
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
187 |
-
<tr><td>LeNER-Br</td><td> Portuguese </td> <td>
|
188 |
-
<tr><td rowspan="3">SwissJudgmentPrediction</td><td>
|
189 |
-
<tr><td> French </td> <td
|
190 |
-
<tr><td> Italian </td> <td
|
191 |
-
<tr><td rowspan="23">MultiEURLEX</td><td> English </td> <td
|
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>
|
|
|
81 |
|
82 |
## Dataset Description
|
83 |
|
84 |
+
- **Repository:** https://git.rwth-aachen.de/johanna.frenz/legalglue
|
85 |
|
86 |
### Dataset Summary
|
87 |
|
|
|
102 |
</table>
|
103 |
|
104 |
### Languages
|
105 |
+
see Split section
|
106 |
|
107 |
## Dataset Structure
|
108 |
|
|
|
112 |
|
113 |
German_LER example
|
114 |
|
115 |
+
```python
|
116 |
+
from datasets import load_dataset
|
117 |
+
dataset = load_dataset('jfrenz/legalglue', 'german_ler')
|
118 |
+
```
|
119 |
+
|
120 |
```json
|
121 |
{
|
122 |
'id': '66722',
|
|
|
129 |
|
130 |
LeNER-Br example
|
131 |
|
132 |
+
```python
|
133 |
+
from datasets import load_dataset
|
134 |
+
dataset = load_dataset('jfrenz/legalglue', 'lener_br')
|
135 |
+
```
|
136 |
+
|
137 |
+
|
138 |
```json
|
139 |
{
|
140 |
'id': '7826',
|
|
|
146 |
|
147 |
swissJudgmentPrediction_de example
|
148 |
|
149 |
+
```python
|
150 |
+
from datasets import load_dataset
|
151 |
+
dataset = load_dataset('jfrenz/legalglue', 'swissJudgmentPrediction_de')
|
152 |
+
```
|
153 |
+
|
154 |
```json
|
155 |
{
|
156 |
'id': 48755,
|
|
|
166 |
|
167 |
####MultiEURLEX
|
168 |
|
169 |
+
Monolingual example out of the MultiEURLEX-Dataset
|
170 |
+
|
171 |
+
```python
|
172 |
+
from datasets import load_dataset
|
173 |
+
dataset = load_dataset('jfrenz/legalglue', 'multi_eurlex_de')
|
174 |
+
```
|
175 |
+
|
176 |
|
177 |
```json
|
178 |
{
|
|
|
182 |
```
|
183 |
|
184 |
Multilingual example out of the MultiEURLEX-Dataset
|
185 |
+
|
186 |
+
```python
|
187 |
+
from datasets import load_dataset
|
188 |
+
dataset = load_dataset('jfrenz/legalglue', 'multi_eurlex_all_languages')
|
189 |
+
```
|
190 |
+
|
191 |
```json
|
192 |
{
|
193 |
'celex_id': '32002R0130',
|
|
|
205 |
```
|
206 |
### Data Fields
|
207 |
|
208 |
+
####German_LER
|
209 |
+
|
210 |
+
- `id`: id of the sample
|
211 |
+
- `tokens`: the tokens of the sample text
|
212 |
+
- `ner_tags`: the NER tags of each token
|
213 |
+
|
214 |
+
|
215 |
+
####LeNER_Br
|
216 |
+
|
217 |
+
- `id`: id of the sample
|
218 |
+
- `tokens`: the tokens of the sample text
|
219 |
+
- `ner_tags`: the NER tags of each token
|
220 |
+
|
221 |
+
####SwissJudgmentPrediction
|
222 |
+
|
223 |
+
-`id`: (**int**) ID of the document
|
224 |
+
-`year`: (**int**) the publication year
|
225 |
+
-`text`: (**str**) the facts of the case
|
226 |
+
-`label`: (**class label**) the judgment outcome: 0 (dismissal) or 1 (approval)
|
227 |
+
-`language`: (**str**) one of (de, fr, it)
|
228 |
+
-`region`: (**str**) the region of the lower court
|
229 |
+
-`canton`: (**str**) the canton of the lower court
|
230 |
+
-`legal area`: (**str**) the legal area of the case
|
231 |
+
|
232 |
+
|
233 |
+
####MultiEURLEX
|
234 |
+
|
235 |
+
Monolingual use:
|
236 |
+
-`celex_id`: (**str**) Official Document ID of the document
|
237 |
+
-`text`: (**str**) An EU Law
|
238 |
+
-`labels`: (**List[int]**) List of relevant EUROVOC concepts (labels)
|
239 |
+
|
240 |
+
Multilingual use:
|
241 |
+
-`celex_id`: (**str**) Official Document ID of the document
|
242 |
+
-`text`: (dict[**str**]) A dictionary with the 23 languages as keys and the corresponding EU Law as values.\
|
243 |
+
-`labels`: (**List[int]**) List of relevant EUROVOC concepts (labels)
|
244 |
+
|
245 |
+
The labels lists consists per default of level 1 EUROVOC concepts. Can be changed by adding the label_level parameter when loading the dataset. (available levels: level_1, level_2, level_3, all_levels)
|
246 |
+
```python
|
247 |
+
from datasets import load_dataset
|
248 |
+
dataset = load_dataset('jfrenz/legalglue', 'multi_eurlex_de', label_level="level_3")
|
249 |
+
```
|
250 |
|
251 |
### Data Splits
|
252 |
|
253 |
<table>
|
254 |
<tr><th>Dataset</th><th> Language </th> <th> ISO code </th> <th> Number of Documents train/dev/test </th> </tr>
|
255 |
+
<tr><td>German-LER</td><td> German </td> <td><b>de</b></td> <td> 66723 / - / - </td> </tr>
|
256 |
+
<tr><td>LeNER-Br</td><td> Portuguese </td> <td><b>pt</b></td> <td> 7828 / 1177 / 1390 </td> </tr>
|
257 |
+
<tr><td rowspan="3">SwissJudgmentPrediction</td><td>German </td> <td><b>de</b></td> <td> 35458 / 4705 / 9725 </td> </tr>
|
258 |
+
<tr><td> French </td> <td><b>fr</b></td> <td> 21179 / 3095 / 6820 </td> </tr>
|
259 |
+
<tr><td> Italian </td> <td><b>it</b></td> <td> 3072 / 408 / 812 </td> </tr>
|
260 |
+
<tr><td rowspan="23">MultiEURLEX</td><td> English </td> <td><b>en</b></td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
|
261 |
<tr><td> German </td> <td> <b>de</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
|
262 |
<tr><td> French </td> <td> <b>fr</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
|
263 |
<tr><td> Italian </td> <td> <b>it</b> </td> <td> 55,000 / 5,000 / 5,000 </td> </tr>
|
legalglue.py
CHANGED
@@ -833,7 +833,7 @@ EUROVOC_CONCEPTS = {
|
|
833 |
"2825",
|
834 |
"5781",
|
835 |
],
|
836 |
-
"
|
837 |
"100149",
|
838 |
"100160",
|
839 |
"100148",
|
|
|
833 |
"2825",
|
834 |
"5781",
|
835 |
],
|
836 |
+
"all_levels": [
|
837 |
"100149",
|
838 |
"100160",
|
839 |
"100148",
|