Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10M<n<100M
Language Creators:
found
Annotations Creators:
no-annotation
ArXiv:
License:
File size: 12,179 Bytes
00af5c9
 
 
 
 
aa7fc66
00af5c9
aa7fc66
a818658
00af5c9
 
 
 
 
 
 
 
 
 
7dc90d5
00af5c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4498dec
00af5c9
 
 
 
 
 
 
4f98927
00af5c9
 
 
 
 
 
 
 
 
a818658
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
00af5c9
4f98927
 
df78842
4f98927
 
 
 
00af5c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440eccc
00af5c9
 
 
 
 
440eccc
00af5c9
 
 
440eccc
00af5c9
 
 
440eccc
00af5c9
 
 
 
 
92cc549
00af5c9
 
 
ff4d7f3
00af5c9
 
 
ff4d7f3
00af5c9
 
 
 
 
d2756be
00af5c9
37af2cb
 
 
 
4f5628c
 
 
 
 
 
 
 
 
 
37af2cb
 
 
 
 
 
 
4f5628c
 
 
 
 
 
 
 
 
00af5c9
 
2aef144
 
 
1c57dcb
 
 
 
 
a62594e
b3e543f
2aef144
f63ef3c
b3e543f
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
---
annotations_creators:
- no-annotation
language_creators:
- found
language:
- en
license:
- cc-by-nc-sa-4.0
multilinguality:
- monolingual
pretty_name: pile-of-law
size_categories:
- 10M<n<100M
source_datasets: []
task_categories:
- fill-mask
task_ids:
- masked-language-modeling
viewer: false
---

# Dataset Card for Pile of Law

## 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:** https://huggingface.co/datasets/pile-of-law/pile-of-law
- **Repository:** https://huggingface.co/datasets/pile-of-law/pile-of-law
- **Paper:** https://arxiv.org/abs/2207.00220

### Dataset Summary

We curate a large corpus of legal and administrative data. The utility of this data is twofold: (1) to aggregate legal and administrative data sources that demonstrate different norms and legal standards for data filtering; (2) to collect a dataset that can be used in the future for pretraining legal-domain language models, a key direction in access-to-justice initiatives.

### Supported Tasks and Leaderboards

See paper for details.

### Languages

English

## Dataset Structure

### Data Instances

**courtListener_docket_entry_documents** : Docket entries in U.S. federal courts, including filed briefs from CourtListener RECAP archive.

**courtListener_opinions** : U.S. court opinions from CourtListener.

**atticus_contracts**: Unannotated contracts from the Atticus Project.

**federal_register**: The U.S. federal register where agencies file draft rulemaking.

**bva_opinions**: Bureau of Veterans Appeals opinions.

**us_bills**: Draft Bills from the United States Congress.

**cc_casebooks**: Educational Casebooks released under open CC licenses.

**tos**: Unannotated Terms of Service contracts.

**euro_parl**: European parliamentary debates.

**nlrb_decisions**: Decisions from the U.S. National Labor Review Board.

**scotus_oral_arguments**: U.S. Supreme Court Oral Arguments

**cfr**: U.S. Code of Federal Regulations

**state_codes**: U.S. State Codes

**scotus_filings**: Briefs and filings with the U.S. Supreme Court.

**bar_exam_outlines**: Bar exam outlines available openly on the web.

**edgar**: Contracts filed with the SEC and made available on the SEC's Edgar tool.

**cfpb_creditcard_contracts**: Credit Card Contracts compiled by the U.S. Consumer Finance Protection Bureau.

**constitutions** : The World's constitutions.

**congressional_hearings** : U.S. Congressional hearing transcripts and statements.

**oig**: U.S. Office of Inspector general reports.

**olc_memos**: U.S. Office of Legal Counsel memos.

**uscode**: The United States Code (laws).

**founding_docs**: Letters from U.S. founders.

**ftc_advisory_opinions**: Advisory opinions by the Federal Trade Commission.

**echr** : European Court of Human Rights opinions.

**eurlex**: European Laws.

**tax_rulings**: Rulings from U.S. Tax court.

**un_debates**: U.N. General Debates

**fre**: U.S. Federal Rules of Evidence

**frcp** : U.S. Federal Rules of Civil Procedure

**canadian_decisions**: Canadian Court Opinions from ON and BC.

**eoir**: U.S. Executive Office for Immigration Review Immigration and Nationality Precedential Decisions

**dol_ecab**: Department of Labor Employees' Compensation Appeals Board decisions after 2006

**r_legaladvice** : Filtered data from the r/legaladvice and r/legaladviceofftopic subreddits in the format. 
Title: [Post Title]
Question: [Post Content]
Topic: [Post Flair]
Answer \#[N]: [Top Answers]...


### Data Fields

- text: the document text
- created_timestamp: If the original source provided a timestamp when the document was created we provide this as well. Note, these may be inaccurate. For example CourtListener case opinions provide the timestamp of when it was uploaded to CourtListener not when the opinion was published. We welcome pull requests to correct this field if such inaccuracies are discovered.
- downloaded_timestamp: When the document was scraped.
- url: the source url

### Data Splits

There is a train/validation split for each subset of the data. 75%/25%

## Dataset Creation

### Curation Rationale

We curate a large corpus of legal and administrative data. The utility of this data is twofold: (1) to aggregate legal and administrative data sources that demonstrate different norms and legal standards for data filtering; (2) to collect a dataset that can be used in the future for pretraining legal-domain language models, a key direction in access-to-justice initiatives. As such, data sources are curated to inform: (1) legal analysis, knowledge, or understanding; (2) argument formation; (3) privacy filtering standards. Sources like codes and laws tend to inform (1). Transcripts and court filings tend to inform (2). Opinions tend to inform (1) and (3).

### Source Data

#### Initial Data Collection and Normalization

We do not normalize the data, but we provide dataset creation code and relevant urls in https://github.com/Breakend/PileOfLaw

#### Who are the source language producers?

Varied (see sources above).

### Personal and Sensitive Information

This dataset may contain personal and sensitive information. However, this has been previously filtered by the relevant government and federal agencies that weigh the harms of revealing this information against the benefits of transparency. If you encounter something particularly harmful, please file a takedown request with the upstream source and notify us in the communities tab. We will then remove the content. We cannot enable more restrictive licensing because upstream sources may restrict using a more restrictive license. However, we ask that all users of this data respect the upstream licenses and restrictions. Per the standards of CourtListener, we do not allow indexing of this data by search engines and we ask that others do not also. Please do not turn on anything that allows the data to be easily indexed.

## Considerations for Using the Data

### Social Impact of Dataset

We hope that this dataset will provide more mechanisms for doing data work. As we describe in the paper, the internal variation allows contextual privacy rules to be learned. If robust mechanisms for this are developed they can applied more broadly. This dataset can also potentially be used for legal language model pretraining. As discussed in ``On the Opportunities and Risks of Foundation Models'', legal language models can help improve access to justice in various ways. But they can also be used in potentially harmful ways. While such models are not ready for most production environments and are the subject of significant research, we ask that model creators using this data, particularly when creating generative models, consider the impacts of their model and make a good faith effort to weigh the benefits against the harms of their method. Our license and many of the sub-licenses also restrict commercial usage.

### Discussion of Biases

The data reflects the biases of governments and courts. As we discuss in our work, these can be significant, though more recent text will likely be less overtly toxic. Please see the above statement and embark on any model uses responsibly.

### Other Known Limitations

We mainly focus on U.S. and English-speaking legal sources, though we include some European and Canadian resources.

## Additional Information

### Licensing Information

 CreativeCommons Attribution-NonCommercial-ShareAlike 4.0 International. But individual sources may have other licenses. See paper for details. Some upstream data sources request that indexing be disabled. As such please **do not re-host any data in a way that can be indexed by search engines.**

### No Representations

We do not make any representation that the legal information provided here is accurate. It is meant for research purposes only. For the authoritative and updated source of information please refer directly to the governing body which provides the latest laws, rules, and regulations relevant to you.

### DMCA Takedown Requests

Pile of Law follows the notice and takedown procedures in the Digital Millennium Copyright Act (DMCA), 17 U.S.C. Section 512.

If you believe content on Pile of Law violates your copyright, please immediately notify its operators by sending a message with the information described below. Please use the subject "Copyright" in your message. If Pile of Law's operators act in response to an infringement notice, they will make a good-faith attempt to contact the person who contributed the content using the most recent email address that person provided to Pile of Law.

Under the DMCA, you may be held liable for damages based on material misrepresentations in your infringement notice. You must also make a good-faith evaluation of whether the use of your content is a fair use, because fair uses are not infringing. See 17 U.S.C. Section 107 and Lenz v. Universal Music Corp., No. 13-16106 (9th Cir. Sep. 14, 2015). If you are not sure if the content you want to report infringes your copyright, you should first contact a lawyer.

The DMCA requires that all infringement notices must include all of the following:

+ A signature of the copyright owner or a person authorized to act on the copyright owner's behalf
+ An identification of the copyright claimed to have been infringed
+ A description of the nature and location of the material that you claim to infringe your copyright, in sufficient detail to allow Pile of Law to find and positively identify that material
+ Your name, address, telephone number, and email address
+ A statement that you believe in good faith that the use of the material that you claim to infringe your copyright is not authorized by law, or by the copyright owner or such owner's agent
+ A statement, under penalty of perjury, that all of the information contained in your infringement notice is accurate
+ A statement, under penalty of perjury, that you are either the copyright owner or a person authorized to act on their behalf.

Pile of Law will respond to all DMCA-compliant infringement notices, including, as required or appropriate, by removing the offending material or disabling all links to it.

All received infringement notices may be posted in full to the Lumen database (previously known as the Chilling Effects Clearinghouse). 

All takedown requests with the above information should be sent via email to pileoflaw@gmail.com.

This removal notice has been modified from the (CourtListener DMCA takedown notice)[https://www.courtlistener.com/terms/].

### Citation Information

For a citation to this work:

```
@misc{hendersonkrass2022pileoflaw,
  url = {https://arxiv.org/abs/2207.00220},
  author = {Henderson*, Peter and Krass*, Mark S. and Zheng, Lucia and Guha, Neel and Manning, Christopher D. and Jurafsky, Dan and Ho, Daniel E.},
  title = {Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Dataset},
  publisher = {arXiv},
  year = {2022}
}
```

Since this dataset also includes several other data sources with citations, please refer to our paper and cite the additional relevant work in addition to our own work.