joelniklaus commited on
Commit
3810cf6
1 Parent(s): 51526d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +293 -0
README.md CHANGED
@@ -1,3 +1,296 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: cc-by-sa-4.0
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - other
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - bg
8
+ - cs
9
+ - da
10
+ - de
11
+ - el
12
+ - en
13
+ - es
14
+ - et
15
+ - fi
16
+ - fr
17
+ - ga
18
+ - hr
19
+ - hu
20
+ - it
21
+ - lt
22
+ - lv
23
+ - mt
24
+ - nl
25
+ - pl
26
+ - pt
27
+ - ro
28
+ - sk
29
+ - sl
30
+ - sv
31
  license: cc-by-sa-4.0
32
+ multilinguality:
33
+ - multilingual
34
+ paperswithcode_id: null
35
+ pretty_name: 'MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain'
36
+ size_categories:
37
+ - 10M<n<100M
38
+ source_datasets:
39
+ - original
40
+ task_categories:
41
+ - fill-mask
42
  ---
43
+
44
+ # Dataset Card for MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain
45
+
46
+ ## Table of Contents
47
+
48
+ - [Table of Contents](#table-of-contents)
49
+ - [Dataset Description](#dataset-description)
50
+ - [Dataset Summary](#dataset-summary)
51
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
52
+ - [Languages](#languages)
53
+ - [Dataset Structure](#dataset-structure)
54
+ - [Data Instances](#data-instances)
55
+ - [Data Fields](#data-fields)
56
+ - [Data Splits](#data-splits)
57
+ - [Dataset Creation](#dataset-creation)
58
+ - [Curation Rationale](#curation-rationale)
59
+ - [Source Data](#source-data)
60
+ - [Annotations](#annotations)
61
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
62
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
63
+ - [Social Impact of Dataset](#social-impact-of-dataset)
64
+ - [Discussion of Biases](#discussion-of-biases)
65
+ - [Other Known Limitations](#other-known-limitations)
66
+ - [Additional Information](#additional-information)
67
+ - [Dataset Curators](#dataset-curators)
68
+ - [Licensing Information](#licensing-information)
69
+ - [Citation Information](#citation-information)
70
+ - [Contributions](#contributions)
71
+
72
+ ## Dataset Description
73
+
74
+ - **Homepage:**
75
+ - **Repository:**
76
+ - **Paper:**
77
+ - **Leaderboard:**
78
+ - **Point of Contact:** [Joel Niklaus](mailto:joel.niklaus.2@bfh.ch)
79
+
80
+ ### Dataset Summary
81
+
82
+ The Multi_Legal_Pile is a large-scale multilingual legal dataset suited for pretraining language models.
83
+ It spans over 24 languages and five legal text types. This version only contains data permissively licensed for commercial use.
84
+
85
+ ### Supported Tasks and Leaderboards
86
+
87
+ The dataset supports the tasks of fill-mask.
88
+
89
+ ### Languages
90
+
91
+ The following languages are supported: bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt,
92
+ ro, sk, sl, sv
93
+
94
+ ## Dataset Structure
95
+
96
+ It is structured in the following format:
97
+ type -> language -> jurisdiction.jsonl.xz
98
+
99
+ type is one of the following:
100
+
101
+ - caselaw
102
+ - contracts
103
+ - legislation
104
+ - other
105
+ - legal_mc4
106
+
107
+ `legal_mc4` is a subset of the other type but is listed separately so it can be easily excluded since it is less
108
+ permissively licensed than the other types.
109
+
110
+ Use the dataset like this:
111
+
112
+ ```python
113
+ from datasets import load_dataset
114
+
115
+ config = 'en_contracts' # {language}_{type}
116
+ dataset = load_dataset('joelito/Multi_Legal_Pile', config, split='train', streaming=True)
117
+ ```
118
+
119
+ 'config' is a combination of language and text_type, e.g. 'en_contracts' or 'de_caselaw'.
120
+ To load all the languages or all the text_types, use 'all' instead of the language or text_type (e.g., '
121
+ all_legislation').
122
+
123
+ ### Data Instances
124
+
125
+ The file format is jsonl.xz and there is one split available ("train").
126
+
127
+ The complete dataset (689GB) consists of four large subsets:
128
+
129
+ - Native Multi Legal Pile (112GB)
130
+ - Eurlex Resources (179GB)
131
+ - Legal MC4 (106GB)
132
+ - Pile of Law (292GB)
133
+
134
+ #### Native Multilingual Legal Pile data
135
+
136
+ | | Language | Text Type | Jurisdiction | Source | Size (MB) | Words | Documents | Words/Document | URL | License |
137
+ |---:|:-----------|:------------|:---------------|:-----------------------------------|------------:|------------:|------------:|-----------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|
138
+ | 0 | bg | legislation | Bulgaria | MARCELL | 8015 | 308946116 | 82777 | 3732 | https://elrc-share.eu/repository/browse/marcell-bulgarian-legislative-subcorpus-v2/946267fe8d8711eb9c1a00155d026706d2c9267e5cdf4d75b5f02168f01906c6/ | [CC0-1.0](https://elrc-share.eu/static/metashare/licences/CC0-1.0.pdf) |
139
+ | 1 | cs | caselaw | Czechia | CzCDC Constitutional Court | 11151 | 574336489 | 296652 | 1936 | https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052 | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) |
140
+ | 2 | cs | caselaw | Czechia | CzCDC Supreme Administrative Court | 11151 | 574336489 | 296652 | 1936 | https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052 | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) |
141
+ | 3 | cs | caselaw | Czechia | CzCDC Supreme Court | 11151 | 574336489 | 296652 | 1936 | https://lindat.mff.cuni.cz/repository/xmlui/handle/11372/LRT-3052 | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) |
142
+ | 4 | da | caselaw | Denmark | DDSC | 3469 | 210730560 | 89702 | 2349 | https://huggingface.co/DDSC | [CC BY 4.0 and other, depending on the dataset](https://creativecommons.org/licenses/by-nc/4.0/) |
143
+ | 5 | da | legislation | Denmark | DDSC | 10736 | 653153146 | 265868 | 2456 | https://huggingface.co/DDSC | [CC BY 4.0 and other, depending on the dataset](https://creativecommons.org/licenses/by-nc/4.0/) |
144
+ | 6 | de | caselaw | Germany | openlegaldata | 31527 | 1785439383 | 596800 | 2991 | https://de.openlegaldata.io/ | [ODbL-1.0](https://opendatacommons.org/licenses/odbl/1-0/) |
145
+ | 7 | de | caselaw | Switzerland | entscheidsuche | 31527 | 1785439383 | 596800 | 2991 | https://entscheidsuche.ch/ | [See description](https://entscheidsuche.ch/dataUsage) |
146
+ | 8 | de | legislation | Germany | openlegaldata | 8934 | 512840663 | 276034 | 1857 | https://de.openlegaldata.io/ | [ODbL-1.0](https://opendatacommons.org/licenses/odbl/1-0/) |
147
+ | 9 | de | legislation | Switzerland | lexfind | 8934 | 512840663 | 276034 | 1857 | https://www.lexfind.ch/fe/de/search | No information provided |
148
+ | 10 | fr | caselaw | Switzerland | entscheidsuche | 18313 | 1170335690 | 435569 | 2686 | https://entscheidsuche.ch/ | [See description](https://entscheidsuche.ch/dataUsage) |
149
+ | 11 | fr | caselaw | Belgium | jurportal | 18313 | 1170335690 | 435569 | 2686 | https://juportal.be/home/welkom | [See description](https://juportal.be/home/disclaimer) |
150
+ | 12 | fr | caselaw | France | CASS | 18313 | 1170335690 | 435569 | 2686 | https://echanges.dila.gouv.fr/OPENDATA/CASS/ | [Open Licence 2.0](https://echanges.dila.gouv.fr/OPENDATA/CASS/DILA_CASS_Presentation_20170824.pdf) |
151
+ | 13 | fr | caselaw | Luxembourg | judoc | 18313 | 1170335690 | 435569 | 2686 | https://justice.public.lu/fr.html | [See description](https://justice.public.lu/fr/support/aspects-legaux/conditions-generales.html) |
152
+ | 14 | it | caselaw | Switzerland | entscheidsuche | 6483 | 406520336 | 156630 | 2595 | https://entscheidsuche.ch/ | [See description](https://entscheidsuche.ch/dataUsage) |
153
+ | 15 | en | legislation | Switzerland | lexfind | 36587 | 2537696894 | 657805 | 3857 | https://www.lexfind.ch/fe/de/search | No information provided |
154
+ | 16 | en | legislation | UK | uk-lex | 36587 | 2537696894 | 657805 | 3857 | https://zenodo.org/record/6355465 | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode) |
155
+ | 17 | fr | legislation | Switzerland | lexfind | 9297 | 600170792 | 243313 | 2466 | https://www.lexfind.ch/fe/fr/search | No information provided |
156
+ | 18 | fr | legislation | Belgium | ejustice | 9297 | 600170792 | 243313 | 2466 | https://www.ejustice.just.fgov.be/cgi/welcome.pl | No information provided |
157
+ | 19 | it | legislation | Switzerland | lexfind | 8332 | 542579039 | 227968 | 2380 | https://www.lexfind.ch/fe/it/search | No information provided |
158
+ | 20 | nl | legislation | Belgium | ejustice | 8484 | 550788527 | 232204 | 2372 | https://www.ejustice.just.fgov.be/cgi/welcome.pl | No information provided |
159
+ | 21 | hu | legislation | Hungary | MARCELL | 5744 | 264572303 | 86862 | 3045 | https://elrc-share.eu/repository/browse/marcell-hungarian-legislative-subcorpus-v2/a87295ec8d6511eb9c1a00155d0267065f7e56dc7db34ce5aaae0b48a329daaa/ | [CC0-1.0](https://elrc-share.eu/static/metashare/licences/CC0-1.0.pdf) |
160
+ | 22 | pl | legislation | Poland | MARCELL | 5459 | 299334705 | 89264 | 3353 | https://elrc-share.eu/repository/browse/marcell-polish-legislative-subcorpus-v2/dd14fa1c8d6811eb9c1a00155d026706c4718ddc9c6e4a92a88923816ca8b219/ | [CC0-1.0](https://elrc-share.eu/static/metashare/licences/CC0-1.0.pdf) |
161
+ | 23 | pt | caselaw | Brazil | RulingBR | 196919 | 12611760973 | 17251236 | 731 | https://github.com/diego-feijo/rulingbr | No information provided |
162
+ | 24 | pt | caselaw | Brazil | CRETA | 196919 | 12611760973 | 17251236 | 731 | https://www.kaggle.com/datasets/eliasjacob/brcad5?resource=download&select=language_modeling_texts.parquet | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
163
+ | 25 | pt | caselaw | Brazil | CJPG | 196919 | 12611760973 | 17251236 | 731 | https://esaj.tjsp.jus.br/cjsg/consultaCompleta.do?f=1 | No information provided |
164
+ | 26 | ro | legislation | Romania | MARCELL | 10464 | 559092153 | 215694 | 2592 | https://elrc-share.eu/repository/browse/marcell-romanian-legislative-subcorpus-v2/2da548428b9d11eb9c1a00155d026706ce94a6b59ffc4b0e9fb5cd9cebe6889e/ | [CC0-1.0](https://elrc-share.eu/static/metashare/licences/CC0-1.0.pdf) |
165
+ | 27 | sk | legislation | Slovakia | MARCELL | 5208 | 280182047 | 76760 | 3650 | https://elrc-share.eu/repository/browse/marcell-slovak-legislative-subcorpus-v2/6bdee1d68c8311eb9c1a00155d0267063398d3f1a3af40e1b728468dcbd6efdd/ | [CC0-1.0](https://elrc-share.eu/static/metashare/licences/CC0-1.0.pdf) |
166
+ | 28 | sl | legislation | Slovenia | MARCELL | 6057 | 365513763 | 88651 | 4123 | https://elrc-share.eu/repository/browse/marcell-slovenian-legislative-subcorpus-v2/e2a779868d4611eb9c1a00155d026706983c845a30d741b78e051faf91828b0d/ | [CC-BY-4.0](https://elrc-share.eu/static/metashare/licences/CC-BY-4.0.pdf)
167
+ | total | all | all | all | 1297609 | xxx | 81214262514 | 57305071 | 1417 | |
168
+
169
+ #### Eurlex Resources
170
+
171
+ See [Eurlex Resources](https://huggingface.co/datasets/joelito/eurlex_resources#data-instances) for more information.
172
+
173
+ #### Legal-MC4
174
+
175
+ See [Legal-MC4](https://huggingface.co/datasets/joelito/legal-mc4#data-instances) for more information.
176
+
177
+ #### Pile-of-Law
178
+
179
+ See [Pile-of-Law](https://huggingface.co/datasets/pile-of-law/pile-of-law#data-instances) for more information.
180
+
181
+ | Language | Type | Jurisdiction | Source | Size (MB) | Tokens | Documents | Tokens/Document | Part of Multi_Legal_Pile |
182
+ |:-----------|:------------|:---------------|:-------------------------------------|------------:|------------:|------------:|------------------:|:---------------------------|
183
+ | en | all | all | all | 503712 | 50547777921 | 9872444 | 5120 | yes |
184
+ | en | caselaw | EU | echr | 298 | 28374996 | 8480 | 3346 | yes |
185
+ | en | caselaw | Canada | canadian_decisions | 486 | 45438083 | 11343 | 4005 | yes |
186
+ | en | caselaw | US | dol_ecab | 942 | 99113541 | 28211 | 3513 | no |
187
+ | en | caselaw | US | scotus_oral_arguments | 1092 | 108228951 | 7996 | 13535 | no |
188
+ | en | caselaw | US | tax_rulings | 1704 | 166915887 | 54064 | 3087 | no |
189
+ | en | caselaw | US | nlrb_decisions | 2652 | 294471818 | 32080 | 9179 | no |
190
+ | en | caselaw | US | scotus_filings | 4018 | 593870413 | 63775 | 9311 | yes |
191
+ | en | caselaw | US | bva_opinions | 35238 | 4084140080 | 839523 | 4864 | no |
192
+ | en | caselaw | US | courtlistener_docket_entry_documents | 139006 | 12713614864 | 1983436 | 6409 | yes |
193
+ | en | caselaw | US | courtlistener_opinions | 158110 | 15899704961 | 4518445 | 3518 | yes |
194
+ | en | contracts | -- | tos | 4 | 391890 | 50 | 7837 | no |
195
+ | en | contracts | US | cfpb_creditcard_contracts | 188 | 25984824 | 2638 | 9850 | yes |
196
+ | en | contracts | US | edgar | 28698 | 2936402810 | 987926 | 2972 | yes |
197
+ | en | contracts | US | atticus_contracts | 78300 | 7997013703 | 650833 | 12287 | yes |
198
+ | en | legislation | US | fre | 2 | 173325 | 68 | 2548 | no |
199
+ | en | legislation | US | frcp | 4 | 427614 | 92 | 4647 | no |
200
+ | en | legislation | US | eoir | 62 | 6109737 | 2229 | 2741 | no |
201
+ | en | legislation | -- | constitutions | 66 | 5984865 | 187 | 32004 | yes |
202
+ | en | legislation | US | federal_register | 424 | 39854787 | 5414 | 7361 | yes |
203
+ | en | legislation | US | uscode | 716 | 78466325 | 58 | 1352867 | yes |
204
+ | en | legislation | EU | euro_parl | 808 | 71344326 | 9672 | 7376 | no |
205
+ | en | legislation | US | cfr | 1788 | 160849007 | 243 | 661930 | yes |
206
+ | en | legislation | US | us_bills | 3394 | 320723838 | 112483 | 2851 | yes |
207
+ | en | legislation | EU | eurlex | 3504 | 401324829 | 142036 | 2825 | no |
208
+ | en | legislation | US | state_codes | 18066 | 1858333235 | 217 | 8563747 | yes |
209
+ | en | other | -- | bar_exam_outlines | 4 | 346924 | 59 | 5880 | no |
210
+ | en | other | US | ftc_advisory_opinions | 4 | 509025 | 145 | 3510 | no |
211
+ | en | other | US | olc_memos | 98 | 12764635 | 1384 | 9223 | yes |
212
+ | en | other | -- | cc_casebooks | 258 | 24857378 | 73 | 340512 | no |
213
+ | en | other | -- | un_debates | 360 | 31152497 | 8481 | 3673 | no |
214
+ | en | other | -- | r_legaladvice | 798 | 72605386 | 146671 | 495 | no |
215
+ | en | other | US | founding_docs | 1118 | 100390231 | 183664 | 546 | no |
216
+ | en | other | US | oig | 5056 | 566782244 | 38954 | 14550 | yes |
217
+ | en | other | US | congressional_hearings | 16448 | 1801110892 | 31514 | 57152 | no |
218
+
219
+ ### Data Fields
220
+
221
+ [More Information Needed]
222
+
223
+ ### Data Splits
224
+
225
+ [More Information Needed]
226
+
227
+ ## Dataset Creation
228
+
229
+ ### Curation Rationale
230
+
231
+ [More Information Needed]
232
+
233
+ ### Source Data
234
+
235
+ #### Initial Data Collection and Normalization
236
+
237
+ [More Information Needed]
238
+
239
+ #### Who are the source language producers?
240
+
241
+ [More Information Needed]
242
+
243
+ ### Annotations
244
+
245
+ #### Annotation process
246
+
247
+ [More Information Needed]
248
+
249
+ #### Who are the annotators?
250
+
251
+ [More Information Needed]
252
+
253
+ ### Personal and Sensitive Information
254
+
255
+ [More Information Needed]
256
+
257
+ ## Considerations for Using the Data
258
+
259
+ ### Social Impact of Dataset
260
+
261
+ [More Information Needed]
262
+
263
+ ### Discussion of Biases
264
+
265
+ [More Information Needed]
266
+
267
+ ### Other Known Limitations
268
+
269
+ [More Information Needed]
270
+
271
+ ## Additional Information
272
+
273
+ ### Dataset Curators
274
+
275
+ [More Information Needed]
276
+
277
+ ### Licensing Information
278
+
279
+ [More Information Needed]
280
+
281
+ ### Citation Information
282
+
283
+ ```
284
+ @misc{niklaus2023multilegalpile,
285
+ title={MultiLegalPile: A 689GB Multilingual Legal Corpus},
286
+ author={Joel Niklaus and Veton Matoshi and Matthias Stürmer and Ilias Chalkidis and Daniel E. Ho},
287
+ year={2023},
288
+ eprint={2306.02069},
289
+ archivePrefix={arXiv},
290
+ primaryClass={cs.CL}
291
+ }
292
+ ```
293
+
294
+ ### Contributions
295
+
296
+ Thanks to [@JoelNiklaus](https://github.com/joelniklaus) for adding this dataset.