File size: 11,844 Bytes
d35cbd8 47c0146 d35cbd8 47c0146 d35cbd8 47c0146 d35cbd8 47c0146 d35cbd8 47c0146 d35cbd8 3867c01 c4cc7cc 3867c01 47c0146 d35cbd8 47c0146 04595a3 47c0146 04595a3 c4cc7cc 04595a3 47c0146 04595a3 47c0146 04595a3 c4cc7cc 47c0146 d35cbd8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
---
annotations_creators:
- other
language_creators:
- found
language:
- bg
- cs
- da
- de
- el
- en
- es
- et
- fi
- fr
- ga
- hr
- hu
- it
- lt
- lv
- mt
- nl
- pl
- pt
- ro
- sk
- sl
- sv
license:
- cc-by-4.0
multilinguality:
- multilingual
paperswithcode_id: null
pretty_name: "MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain"
size_categories:
- 10M<n<100M
source_datasets:
- original
task_categories:
- fill-mask
---
# Dataset Card for MultiLegalPile: A Large-Scale Multilingual Corpus for the Legal Domain
## Table of Contents
- [Table of Contents](#table-of-contents)
- [Dataset Description](#dataset-description)
- [Dataset Summary](#dataset-summary)
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
- [Languages](#languages)
- [Dataset Structure](#dataset-structure)
- [Data Instances](#data-instances)
- [Data Fields](#data-fields)
- [Data Splits](#data-splits)
- [Dataset Creation](#dataset-creation)
- [Curation Rationale](#curation-rationale)
- [Source Data](#source-data)
- [Annotations](#annotations)
- [Personal and Sensitive Information](#personal-and-sensitive-information)
- [Considerations for Using the Data](#considerations-for-using-the-data)
- [Social Impact of Dataset](#social-impact-of-dataset)
- [Discussion of Biases](#discussion-of-biases)
- [Other Known Limitations](#other-known-limitations)
- [Additional Information](#additional-information)
- [Dataset Curators](#dataset-curators)
- [Licensing Information](#licensing-information)
- [Citation Information](#citation-information)
- [Contributions](#contributions)
## Dataset Description
- **Homepage:**
- **Repository:**
- **Paper:**
- **Leaderboard:**
- **Point of Contact:** [Joel Niklaus](mailto:joel.niklaus.2@bfh.ch)
### Dataset Summary
The Multi_Legal_Pile is a large-scale multilingual legal dataset suited for pretraining language models.
It spans over 24 languages and four legal text types.
### Supported Tasks and Leaderboards
The dataset supports the tasks of fill-mask.
### Languages
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,
ro, sk, sl, sv
## Dataset Structure
It is structured in the following format:
text_type -> language -> jurisdiction.jsonl.xz
text_type is one of the following:
- caselaw
- contracts
- legislation
- other
The dataset can be used in the following way:
```
from datasets import load_dataset
config = 'en_contracts'
dataset = load_dataset('joelito/Multi_Legal_Pile', config, split='Train', streaming=True)
```
'config' is a combination of language and text_type, e.g. 'en_contracts' or 'de_caselaw'.
To load all the languages or all the text_types, use 'all' instead of the language or text_type (e.g., '
all_legislation').
### Data Instances
The file format is jsonl.xz and there is one split available ("train").
The complete dataset (564GB) consists of four large subsets:
- Native Multi Legal Pile (30GB)
- Eurlex Resources (179GB)
- MC4 Legal (133GB)
- Pile of Law (222GB)
#### Native Multilingual Legal Pile data
| Language | Text Type | jurisdiction | Source | Size (MB) | Tokens | Documents | Words/Document | URL | License |
|:---------|:------------|:-------------|:-----------------------------------|----------:|-------:|----------:|---------------:|-----|--------:|
| bg | legislation | Bulgaria | MARCELL | 588 | xxx | xxx | xxx | | |
| cs | caselaw | Czechia | CzCDC Constitutional Court | 713 | xxx | xxx | xxx | | |
| cs | caselaw | Czechia | CzCDC Supreme Administrative Court | 1248 | xxx | xxx | xxx | | |
| cs | caselaw | Czechia | CzCDC Supreme Court | 1566 | xxx | xxx | xxx | | |
| da | caselaw | Denmark | DDSC | 205 | xxx | xxx | xxx | | |
| da | legislation | Denmark | DDSC | 1464 | xxx | xxx | xxx | | |
| de | caselaw | Germany | openlegaldata | 4310 | xxx | xxx | xxx | | |
| de | caselaw | Switzerland | entscheidsuche | 6937 | xxx | xxx | xxx | | |
| de | legislation | Germany | openlegaldata | 96 | xxx | xxx | xxx | | |
| de | legislation | Switzerland | lexfind | 299 | xxx | xxx | xxx | | |
| en | legislation | Switzerland | lexfind | 9 | xxx | xxx | xxx | | |
| en | legislation | UK | uk-lex | 262 | xxx | xxx | xxx | | |
| fr | caselaw | Belgium | jurportal | 104 | xxx | xxx | xxx | | |
| fr | caselaw | France | CASS | 266 | xxx | xxx | xxx | | |
| fr | caselaw | Luxembourg | judoc | 277 | xxx | xxx | xxx | | |
| fr | caselaw | Switzerland | entscheidsuche | 5100 | xxx | xxx | xxx | | |
| fr | legislation | Switzerland | lexfind | 219 | xxx | xxx | xxx | | |
| fr | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
| hu | legislation | Hungary | MARCELL | 239 | xxx | xxx | xxx | | |
| it | caselaw | Switzerland | entscheidsuche | 1274 | xxx | xxx | xxx | | |
| it | legislation | Switzerland | lexfind | 141 | xxx | xxx | xxx | | |
| nl | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
| pl | legislation | Poland | MARCELL | 264 | xxx | xxx | xxx | | |
| pt | caselaw | Brazil | RulingBR | 173 | xxx | xxx | xxx | | |
| ro | legislation | Romania | MARCELL | 2704 | xxx | xxx | xxx | | |
| sk | legislation | Slovakia | MARCELL | 192 | xxx | xxx | xxx | | |
| sl | legislation | Slovenia | MARCELL | 753 | xxx | xxx | xxx | | |
| total | all | all | all | 29759 | xxx | xxx | xxx | | |
#### Eurlex Resources
See [Eurlex Resources](https://huggingface.co/datasets/joelito/eurlex_resources#data-instances) for more information.
#### MC4 Legal
See [MC4 Legal](https://huggingface.co/datasets/joelito/mc4_legal#data-instances) for more information.
#### Pile-of-Law
See [Pile-of-Law](https://huggingface.co/datasets/pile-of-law/pile-of-law#data-instances) for more information.
For simplicity and with respect to balancing off data across different jurisdictions and languages,
we disregard many US resources that are either very specialized (e.g., tax rulings),
outdated/historical (e.g., founding letters),
very small (less than 20MB),
not legal language in the strict sense (conversations),
or the information overlaps with other sources (study materials).
If you are interested in a US-based (US-biased) model, refer to the "Pile of (US) Law" by Henderson et al. (2022).
Analyses are put into the "other" category because in mc4_legal we also likely have similar text.
| Language | Type | jurisdiction | Source | Size (MB) | Tokens | Documents | Words/Document |
|:----------|:------------|:-------------|:---------------------------|----------:|-------:|----------:|---------------:|
| en | caselaw | US | courtlisteneropinions | 79050 | xxx | xxx | xxx |
| en | caselaw | US | courtlistenerdocketentries | 69510 | xxx | xxx | xxx |
| en | caselaw | US | scotus_filings | 2010 | xxx | xxx | xxx |
| en | caselaw | EU | echr | 149 | xxx | xxx | xxx |
| en | caselaw | Canada | canadian_decisions | 243 | xxx | xxx | xxx |
| en | contracts | US | atticus_contracts | 41600 | xxx | xxx | xxx |
| en | contracts | US | edgar | 14350 | xxx | xxx | xxx |
| en | contracts | US | cfpb_creditcard_contracts | 94 | xxx | xxx | xxx |
| en | legislation | US | uscode | 358 | xxx | xxx | xxx |
| en | legislation | US | state_codes | 9030 | xxx | xxx | xxx |
| en | legislation | US | us_bills | 1690 | xxx | xxx | xxx |
| en | legislation | US | federal_register | 212 | xxx | xxx | xxx |
| en | legislation | US | cfr | 894 | xxx | xxx | xxx |
| en | legislation | N/A | constitutions | 33 | xxx | xxx | xxx |
| en | other | US | oig | 2530 | xxx | xxx | xxx |
| en | other | US | olc_memos | 49 | xxx | xxx | xxx |
| total | all | all | all | 221851 | xxx | xxx | xxx |
### Data Fields
[More Information Needed]
### Data Splits
[More Information Needed]
## Dataset Creation
### Curation Rationale
[More Information Needed]
### Source Data
#### Initial Data Collection and Normalization
[More Information Needed]
#### Who are the source language producers?
[More Information Needed]
### Annotations
#### Annotation process
[More Information Needed]
#### Who are the annotators?
[More Information Needed]
### Personal and Sensitive Information
[More Information Needed]
## Considerations for Using the Data
### Social Impact of Dataset
[More Information Needed]
### Discussion of Biases
[More Information Needed]
### Other Known Limitations
[More Information Needed]
## Additional Information
### Dataset Curators
[More Information Needed]
### Licensing Information
[More Information Needed]
### Citation Information
```
TODO add citation
```
### Contributions
Thanks to [@JoelNiklaus](https://github.com/joelniklaus) for adding this dataset.
|