joelniklaus
commited on
Commit
•
47c0146
1
Parent(s):
39ba7aa
removed more data from pile-of-law, added more documentation and added three more datasets
Browse files
.gitattributes
CHANGED
@@ -72,3 +72,6 @@ data/pt/caselaw/brazil_rulingbr.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
|
72 |
data/sl/legislation/slovenia_marcell.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
73 |
data/cs/caselaw/czechia_constitutional_court.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
74 |
data/cs/caselaw/czechia_supreme_administrative_court.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
72 |
data/sl/legislation/slovenia_marcell.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
73 |
data/cs/caselaw/czechia_constitutional_court.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
74 |
data/cs/caselaw/czechia_supreme_administrative_court.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
75 |
+
data/de/caselaw/switzerland_entscheidsuche.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
76 |
+
data/fr/caselaw/switzerland_entscheidsuche.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
77 |
+
data/it/caselaw/switzerland_entscheidsuche.jsonl.xz filter=lfs diff=lfs merge=lfs -text
|
Multi_Legal_Pile.py
CHANGED
@@ -72,18 +72,6 @@ _DATA_NAME = {
|
|
72 |
|
73 |
_PILE_OF_LAW_NAMES = {
|
74 |
"caselaw": {
|
75 |
-
"courtlistener_docket_entry_documents": {
|
76 |
-
"train": [
|
77 |
-
"train.courtlistenerdocketentries.0",
|
78 |
-
"train.courtlistenerdocketentries.1",
|
79 |
-
"train.courtlistenerdocketentries.2",
|
80 |
-
"train.courtlistenerdocketentries.3"
|
81 |
-
],
|
82 |
-
"validation": [
|
83 |
-
"validation.courtlistenerdocketentries.0",
|
84 |
-
"validation.courtlistenerdocketentries.1"
|
85 |
-
]
|
86 |
-
},
|
87 |
"courtlistener_opinions": {
|
88 |
"train": [
|
89 |
"train.courtlisteneropinions.0",
|
@@ -104,34 +92,22 @@ _PILE_OF_LAW_NAMES = {
|
|
104 |
"validation.courtlisteneropinions.3"
|
105 |
]
|
106 |
},
|
107 |
-
"
|
108 |
-
"train": [
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
},
|
119 |
-
"tax_rulings": {
|
120 |
-
"train": ["train.taxrulings"],
|
121 |
-
"validation": ["validation.taxrulings"]
|
122 |
},
|
123 |
"scotus_filings": {
|
124 |
"train": ["train.scotus_docket_entries"],
|
125 |
"validation": ["validation.scotus_docket_entries"]
|
126 |
},
|
127 |
-
"nlrb_decisions": {
|
128 |
-
"train": ["train.nlrb_decisions"],
|
129 |
-
"validation": ["validation.nlrb_decisions"]
|
130 |
-
},
|
131 |
-
"dol_ecab": {
|
132 |
-
"train": ["train.dol_ecab"],
|
133 |
-
"validation": ["validation.dol_ecab"]
|
134 |
-
},
|
135 |
"echr": {
|
136 |
"train": ["train.echr"],
|
137 |
"validation": ["validation.echr"]
|
@@ -163,43 +139,31 @@ _PILE_OF_LAW_NAMES = {
|
|
163 |
"train": ["train.cfpb_cc"],
|
164 |
"validation": ["validation.cfpb_cc"]
|
165 |
},
|
166 |
-
"tos": {
|
167 |
-
"train": ["train.tos"],
|
168 |
-
"validation": ["validation.tos"]
|
169 |
-
},
|
170 |
},
|
171 |
"legislation": {
|
|
|
|
|
|
|
|
|
172 |
"state_codes": {
|
173 |
"train": ["train.state_code"],
|
174 |
"validation": ["validation.state_code"]
|
175 |
},
|
176 |
-
"federal_register": {
|
177 |
-
"train": ["train.federal_register"],
|
178 |
-
"validation": ["validation.federal_register"]
|
179 |
-
},
|
180 |
"us_bills": {
|
181 |
"train": ["train.us_bills"],
|
182 |
"validation": ["validation.us_bills"]
|
183 |
},
|
184 |
-
"
|
185 |
-
"train": ["train.
|
186 |
-
"validation": ["validation.
|
187 |
-
},
|
188 |
-
"constitutions": {
|
189 |
-
"train": ["train.constitutions"],
|
190 |
-
"validation": ["validation.constitutions"]
|
191 |
},
|
192 |
"cfr": {
|
193 |
"train": ["train.cfr"],
|
194 |
"validation": ["validation.cfr"]
|
195 |
},
|
196 |
-
"
|
197 |
-
"train": ["train.
|
198 |
-
"validation": ["validation.
|
199 |
-
},
|
200 |
-
"frcp": {
|
201 |
-
"train": ["train.frcp"],
|
202 |
-
"validation": ["validation.frcp"]
|
203 |
},
|
204 |
},
|
205 |
"other": { # analyses
|
|
|
72 |
|
73 |
_PILE_OF_LAW_NAMES = {
|
74 |
"caselaw": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
"courtlistener_opinions": {
|
76 |
"train": [
|
77 |
"train.courtlisteneropinions.0",
|
|
|
92 |
"validation.courtlisteneropinions.3"
|
93 |
]
|
94 |
},
|
95 |
+
"courtlistener_docket_entry_documents": {
|
96 |
+
"train": [
|
97 |
+
"train.courtlistenerdocketentries.0",
|
98 |
+
"train.courtlistenerdocketentries.1",
|
99 |
+
"train.courtlistenerdocketentries.2",
|
100 |
+
"train.courtlistenerdocketentries.3"
|
101 |
+
],
|
102 |
+
"validation": [
|
103 |
+
"validation.courtlistenerdocketentries.0",
|
104 |
+
"validation.courtlistenerdocketentries.1"
|
105 |
+
]
|
|
|
|
|
|
|
|
|
106 |
},
|
107 |
"scotus_filings": {
|
108 |
"train": ["train.scotus_docket_entries"],
|
109 |
"validation": ["validation.scotus_docket_entries"]
|
110 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
"echr": {
|
112 |
"train": ["train.echr"],
|
113 |
"validation": ["validation.echr"]
|
|
|
139 |
"train": ["train.cfpb_cc"],
|
140 |
"validation": ["validation.cfpb_cc"]
|
141 |
},
|
|
|
|
|
|
|
|
|
142 |
},
|
143 |
"legislation": {
|
144 |
+
"uscode": {
|
145 |
+
"train": ["train.uscode"],
|
146 |
+
"validation": ["validation.uscode"]
|
147 |
+
},
|
148 |
"state_codes": {
|
149 |
"train": ["train.state_code"],
|
150 |
"validation": ["validation.state_code"]
|
151 |
},
|
|
|
|
|
|
|
|
|
152 |
"us_bills": {
|
153 |
"train": ["train.us_bills"],
|
154 |
"validation": ["validation.us_bills"]
|
155 |
},
|
156 |
+
"federal_register": {
|
157 |
+
"train": ["train.federal_register"],
|
158 |
+
"validation": ["validation.federal_register"]
|
|
|
|
|
|
|
|
|
159 |
},
|
160 |
"cfr": {
|
161 |
"train": ["train.cfr"],
|
162 |
"validation": ["validation.cfr"]
|
163 |
},
|
164 |
+
"constitutions": {
|
165 |
+
"train": ["train.constitutions"],
|
166 |
+
"validation": ["validation.constitutions"]
|
|
|
|
|
|
|
|
|
167 |
},
|
168 |
},
|
169 |
"other": { # analyses
|
README.md
CHANGED
@@ -81,16 +81,17 @@ task_categories:
|
|
81 |
|
82 |
### Dataset Summary
|
83 |
|
|
|
|
|
84 |
|
85 |
### Supported Tasks and Leaderboards
|
86 |
|
87 |
The dataset supports the tasks of fill-mask.
|
88 |
|
89 |
-
|
90 |
-
|
91 |
### Languages
|
92 |
|
93 |
-
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,
|
|
|
94 |
|
95 |
## Dataset Structure
|
96 |
|
@@ -98,17 +99,31 @@ It is structured in the following format:
|
|
98 |
text_type -> language -> jurisdiction.jsonl.xz
|
99 |
|
100 |
text_type is one of the following:
|
|
|
101 |
- caselaw
|
102 |
- contracts
|
103 |
- legislation
|
104 |
- other
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
### Data Instances
|
107 |
|
108 |
-
The file format is jsonl.xz and there is one split available ("train").
|
109 |
|
|
|
110 |
|
111 |
-
| Language | Type
|
112 |
|:---------|:------------|:-------------|:-----------------------------------|----------:|-------:|----------:|---------------:|-----|--------:|
|
113 |
| bg | legislation | Bulgaria | MARCELL | 588 | xxx | xxx | xxx | | |
|
114 |
| cs | caselaw | Czechia | CzCDC Constitutional Court | 713 | xxx | xxx | xxx | | |
|
@@ -117,15 +132,18 @@ The file format is jsonl.xz and there is one split available ("train").
|
|
117 |
| da | caselaw | Denmark | DDSC | 205 | xxx | xxx | xxx | | |
|
118 |
| da | legislation | Denmark | DDSC | 1464 | xxx | xxx | xxx | | |
|
119 |
| de | caselaw | Germany | openlegaldata | 4310 | xxx | xxx | xxx | | |
|
|
|
120 |
| de | legislation | Germany | openlegaldata | 96 | xxx | xxx | xxx | | |
|
121 |
| de | legislation | Switzerland | lexfind | 299 | xxx | xxx | xxx | | |
|
122 |
| en | legislation | Switzerland | lexfind | 9 | xxx | xxx | xxx | | |
|
123 |
| fr | caselaw | Belgium | jurportal | 104 | xxx | xxx | xxx | | |
|
124 |
-
| fr | caselaw | Luxembourg | judoc | 277 | xxx | xxx | xxx | | |
|
125 |
| fr | caselaw | France | CASS | 266 | xxx | xxx | xxx | | |
|
|
|
|
|
126 |
| fr | legislation | Switzerland | lexfind | 219 | xxx | xxx | xxx | | |
|
127 |
| fr | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
|
128 |
| hu | legislation | Hungary | MARCELL | 239 | xxx | xxx | xxx | | |
|
|
|
129 |
| it | legislation | Switzerland | lexfind | 141 | xxx | xxx | xxx | | |
|
130 |
| nl | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
|
131 |
| pl | legislation | Poland | MARCELL | 264 | xxx | xxx | xxx | | |
|
@@ -133,8 +151,48 @@ The file format is jsonl.xz and there is one split available ("train").
|
|
133 |
| ro | legislation | Romania | MARCELL | 2704 | xxx | xxx | xxx | | |
|
134 |
| sk | legislation | Slovakia | MARCELL | 192 | xxx | xxx | xxx | | |
|
135 |
| sl | legislation | Slovenia | MARCELL | 753 | xxx | xxx | xxx | | |
|
136 |
-
| total | all | all | all |
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
### Data Fields
|
140 |
|
|
|
81 |
|
82 |
### Dataset Summary
|
83 |
|
84 |
+
The Multi_Legal_Pile is a large-scale multilingual legal dataset suited for pretraining language models.
|
85 |
+
It spans over 24 languages and four legal text types.
|
86 |
|
87 |
### Supported Tasks and Leaderboards
|
88 |
|
89 |
The dataset supports the tasks of fill-mask.
|
90 |
|
|
|
|
|
91 |
### Languages
|
92 |
|
93 |
+
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,
|
94 |
+
ro, sk, sl, sv
|
95 |
|
96 |
## Dataset Structure
|
97 |
|
|
|
99 |
text_type -> language -> jurisdiction.jsonl.xz
|
100 |
|
101 |
text_type is one of the following:
|
102 |
+
|
103 |
- caselaw
|
104 |
- contracts
|
105 |
- legislation
|
106 |
- other
|
107 |
|
108 |
+
The dataset can be used in the following way:
|
109 |
+
```
|
110 |
+
from datasets import load_dataset
|
111 |
+
|
112 |
+
config = 'en_contracts'
|
113 |
+
dataset = load_dataset('joelito/Multi_Legal_Pile', config, split='Train', streaming=True)
|
114 |
+
```
|
115 |
+
|
116 |
+
'config' is a combination of language and text_type, e.g. 'en_contracts' or 'de_caselaw'.
|
117 |
+
To load all the languages or all the text_types, use 'all' instead of the language or text_type (e.g., '
|
118 |
+
all_legislation').
|
119 |
+
|
120 |
### Data Instances
|
121 |
|
122 |
+
The file format is jsonl.xz and there is one split available ("train").
|
123 |
|
124 |
+
#### Native Multilingual Legal Pile data
|
125 |
|
126 |
+
| Language | Text Type | jurisdiction | Source | Size (MB) | Tokens | Documents | Words/Document | URL | License |
|
127 |
|:---------|:------------|:-------------|:-----------------------------------|----------:|-------:|----------:|---------------:|-----|--------:|
|
128 |
| bg | legislation | Bulgaria | MARCELL | 588 | xxx | xxx | xxx | | |
|
129 |
| cs | caselaw | Czechia | CzCDC Constitutional Court | 713 | xxx | xxx | xxx | | |
|
|
|
132 |
| da | caselaw | Denmark | DDSC | 205 | xxx | xxx | xxx | | |
|
133 |
| da | legislation | Denmark | DDSC | 1464 | xxx | xxx | xxx | | |
|
134 |
| de | caselaw | Germany | openlegaldata | 4310 | xxx | xxx | xxx | | |
|
135 |
+
| de | caselaw | Switzerland | entscheidsuche | 6937 | xxx | xxx | xxx | | |
|
136 |
| de | legislation | Germany | openlegaldata | 96 | xxx | xxx | xxx | | |
|
137 |
| de | legislation | Switzerland | lexfind | 299 | xxx | xxx | xxx | | |
|
138 |
| en | legislation | Switzerland | lexfind | 9 | xxx | xxx | xxx | | |
|
139 |
| fr | caselaw | Belgium | jurportal | 104 | xxx | xxx | xxx | | |
|
|
|
140 |
| fr | caselaw | France | CASS | 266 | xxx | xxx | xxx | | |
|
141 |
+
| fr | caselaw | Luxembourg | judoc | 277 | xxx | xxx | xxx | | |
|
142 |
+
| fr | caselaw | Switzerland | entscheidsuche | 5100 | xxx | xxx | xxx | | |
|
143 |
| fr | legislation | Switzerland | lexfind | 219 | xxx | xxx | xxx | | |
|
144 |
| fr | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
|
145 |
| hu | legislation | Hungary | MARCELL | 239 | xxx | xxx | xxx | | |
|
146 |
+
| it | caselaw | Switzerland | entscheidsuche | 1274 | xxx | xxx | xxx | | |
|
147 |
| it | legislation | Switzerland | lexfind | 141 | xxx | xxx | xxx | | |
|
148 |
| nl | legislation | Belgium | ejustice | 178 | xxx | xxx | xxx | | |
|
149 |
| pl | legislation | Poland | MARCELL | 264 | xxx | xxx | xxx | | |
|
|
|
151 |
| ro | legislation | Romania | MARCELL | 2704 | xxx | xxx | xxx | | |
|
152 |
| sk | legislation | Slovakia | MARCELL | 192 | xxx | xxx | xxx | | |
|
153 |
| sl | legislation | Slovenia | MARCELL | 753 | xxx | xxx | xxx | | |
|
154 |
+
| total | all | all | all | 29497 | xxx | xxx | xxx | | |
|
155 |
+
|
156 |
+
#### Eurlex Resources
|
157 |
+
|
158 |
+
See [Eurlex Resources](https://huggingface.co/datasets/joelito/eurlex_resources#data-instances) for more information.
|
159 |
+
|
160 |
+
#### MC4 Legal
|
161 |
+
|
162 |
+
See [MC4 Legal](https://huggingface.co/datasets/joelito/mc4_legal#data-instances) for more information.
|
163 |
+
|
164 |
+
#### Pile-of-Law
|
165 |
+
|
166 |
+
See [Pile-of-Law](https://huggingface.co/datasets/pile-of-law/pile-of-law#data-instances) for more information.
|
167 |
+
|
168 |
+
For simplicity and with respect to balancing off data across different jurisdictions and languages,
|
169 |
+
we disregard many US resources that are either very specialized (e.g., tax rulings),
|
170 |
+
outdated/historical (e.g., founding letters),
|
171 |
+
very small (less than 20MB),
|
172 |
+
not legal language in the strict sense (conversations),
|
173 |
+
or the information overlaps with other sources (study materials).
|
174 |
+
If you are interested in a US-based (US-biased) model, refer to the "Pile of (US) Law" by Henderson et al. (2022).
|
175 |
+
Analyses are put into the "other" category because in mc4_legal we also likely have similar text.
|
176 |
+
|
177 |
+
| Language | Type | jurisdiction | Source | Size (MB) | Tokens | Documents | Words/Document |
|
178 |
+
|:----------|:------------|:-------------|:---------------------------|----------:|-------:|----------:|---------------:|
|
179 |
+
| en | caselaw | US | courtlisteneropinions | 79050 | xxx | xxx | xxx |
|
180 |
+
| en | caselaw | US | courtlistenerdocketentries | 69510 | xxx | xxx | xxx |
|
181 |
+
| en | caselaw | US | scotus_filings | 2010 | xxx | xxx | xxx |
|
182 |
+
| en | caselaw | EU | echr | 149 | xxx | xxx | xxx |
|
183 |
+
| en | caselaw | Canada | canadian_decisions | 243 | xxx | xxx | xxx |
|
184 |
+
| en | contracts | US | atticus_contracts | 41600 | xxx | xxx | xxx |
|
185 |
+
| en | contracts | US | edgar | 14350 | xxx | xxx | xxx |
|
186 |
+
| en | contracts | US | cfpb_creditcard_contracts | 94 | xxx | xxx | xxx |
|
187 |
+
| en | legislation | US | uscode | 358 | xxx | xxx | xxx |
|
188 |
+
| en | legislation | US | state_codes | 9030 | xxx | xxx | xxx |
|
189 |
+
| en | legislation | US | us_bills | 1690 | xxx | xxx | xxx |
|
190 |
+
| en | legislation | US | federal_register | 212 | xxx | xxx | xxx |
|
191 |
+
| en | legislation | US | cfr | 894 | xxx | xxx | xxx |
|
192 |
+
| en | legislation | N/A | constitutions | 33 | xxx | xxx | xxx |
|
193 |
+
| en | other | US | oig | 2530 | xxx | xxx | xxx |
|
194 |
+
| en | other | US | olc_memos | 49 | xxx | xxx | xxx |
|
195 |
+
| total | all | all | all | 221851 | xxx | xxx | xxx |
|
196 |
|
197 |
### Data Fields
|
198 |
|
data/de/caselaw/switzerland_entscheidsuche.jsonl.xz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:163daf541b86fbd0df0bb0bda4eac45bd0d028dcb1ca669f2100678a7de348c0
|
3 |
+
size 1309884424
|
data/fr/caselaw/switzerland_entscheidsuche.jsonl.xz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:403b23a55ea83a52d50bcfd9d5f2a776302cec5f8399e691a2e13f0f7a81bb2d
|
3 |
+
size 958020264
|
data/it/caselaw/switzerland_entscheidsuche.jsonl.xz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71ff338ad883053c8cd65fe1bd5db10a8334512b1f4941e84eecd9954a8811f6
|
3 |
+
size 215367236
|