Datasets:

Size Categories:
100K<n<1M
ArXiv:
Tags:
License:
File size: 14,348 Bytes
88a1572
 
ba0294b
 
 
 
b5396f9
5f7a150
 
 
 
 
 
 
 
 
0833566
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb15792
0833566
 
cb15792
0833566
 
 
 
 
 
 
 
5f7a150
88a1572
ba0294b
 
3c3e798
ba0294b
e0cfbf1
12d2cf3
 
41afe78
 
1bcd84c
3380fc9
3c3e798
3380fc9
ba0294b
 
 
 
 
 
bac1f5c
 
82c0793
416c5d0
 
 
 
ba0294b
bac1f5c
 
416c5d0
58a7362
416c5d0
74d1553
416c5d0
5889deb
416c5d0
bac1f5c
416c5d0
fed34a2
1bcd84c
 
 
 
 
 
bac1f5c
ba0294b
 
450209d
ba0294b
41afe78
ba0294b
 
340e438
890795d
41afe78
ba0294b
1bcd84c
ba0294b
b93508e
ba0294b
1bcd84c
ba0294b
41afe78
ba0294b
41afe78
ba0294b
41afe78
ba0294b
41afe78
ba0294b
3c3e798
 
 
ba0294b
 
 
 
 
0d81ba7
 
 
 
 
 
1cb50e8
0d81ba7
 
2f277a9
0d81ba7
464010c
0d81ba7
1cb50e8
0d81ba7
0833566
2f277a9
41afe78
ba0294b
 
 
 
464010c
1bcd84c
 
464010c
ba0294b
 
 
 
 
3380fc9
 
ba0294b
 
 
12d2cf3
1bcd84c
 
12d2cf3
3380fc9
b256856
 
 
1bcd84c
12d2cf3
 
 
 
3c3e798
e0cfbf1
12d2cf3
 
 
e0cfbf1
5164a32
ba0294b
 
 
 
 
3380fc9
 
 
b256856
3380fc9
 
 
 
 
 
 
 
 
 
b256856
 
 
 
 
 
ba0294b
 
 
b256856
ba0294b
 
 
1bcd84c
 
3380fc9
 
890795d
e0cfbf1
1bcd84c
 
 
3380fc9
ba0294b
 
 
 
 
 
464010c
523fb4b
7b6561c
 
3380fc9
 
12d2cf3
 
 
 
 
 
e0cfbf1
12d2cf3
 
 
 
4b0a473
ba0294b
 
 
416c5d0
523fb4b
 
ba0294b
523fb4b
ba0294b
7b6561c
a756a0e
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
---
license: cc-by-nc-4.0
language:
- en
- fr
size_categories:
- 100K<n<1M
configs:
- config_name: default
  data_files:
  - split: train
    path: "*/*.parquet"
- config_name: SCC
  data_files:
  - split: train
    path: "SCC/*.parquet"
- config_name: FCA
  data_files:
  - split: train
    path: "FCA/*.parquet"
- config_name: FC
  data_files:
  - split: train
    path: "FC/*.parquet"
- config_name: TCC
  data_files:
  - split: train
    path: "TCC/*.parquet"
- config_name: CHRT
  data_files:
  - split: train
    path: "CHRT/*.parquet"
- config_name: RAD
  data_files:
  - split: train
    path: "RAD/*.parquet"
- config_name: RPD
  data_files:
  - split: train
    path: "RPD/*.parquet"
- config_name: RLLR
  data_files:
  - split: train
    path: "RLLR/*.parquet"
- config_name: SST
  data_files:
  - split: train
    path: "SST/*.parquet"
- config_name: LEGISLATION-FED
  data_files:
  - split: train
    path: "LEGISLATION-FED/*.parquet"
- config_name: REGULATIONS-FED
  data_files:
  - split: train
    path: "REGULATIONS-FED/*.parquet"
  
---
# Refugee Law Lab: Canadian Legal Data

## Dataset Summary

The [Refugee Law Lab](https://refugeelab.ca) supports bulk open-access to Canadian legal data to facilitate research and advocacy. 
Bulk open-access helps avoid asymmetrical access-to-justice and amplification of marginalization that 
results when commercial actors leverage proprietary 
legal datasets for profit -- a particular concern in the border control setting.

The Canadian Legal Data dataset includes the unofficial text of legislation, regulations, and thousands of court and tribunal 
decisions at the federal level. It can be used for legal analytics (i.e. identifying patterns in legal 
decision-making), to test ML and NLP tools on a bilingual dataset of Canadian legal materials, and to 
pretrain language models for various tasks.


## Dataset Structure

### Data Instances

#### Court Decisions

- SCC: Full text of Supreme Court of Canada decisions, based on the Refugee Law Lab's
 [Supreme Court of Canada Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/scc/) (1877 – present) (updated Apr 1 2024)
- FCA: Full text of Federal Court of Appeal (Canada) decisions that have been given a neutral citation, based on the Refugee Law Lab's [Federal Court of Appeal Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/fca/) (2001-present) (updated Apr 1 2024)
- FC: Full text of Federal Court (Canada) decisions that have been given a neutral citation, based on the Refugee Law Lab's [Federal Court Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/fc/) (2001-present) (updated Apr 1 2024)
- TCC: Full text of Tax Court of Canada decisions that have been given a neutral citation, based on the Refugee Law Lab's [Tax Court of Canada Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/tcc/) (2003-present) (updated Apr 1 2024)

#### Tribunal Decisions

- CHRT: Full text of Canadian Human Rights Tribunal decisions, baed on the Refugee Law Lab's [Canadian Human Rights Tribunal Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/chrt/) (2013 – present) (updated Apr 1 2024)

- RAD: Full text of Immigration and Refugee Board, Refugee Appeal Division decisions, based on the Refugee Law Lab's [Refugee Appeal Division Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/rad/) (2013-present) (updated Apr 1 2024)

- RPD: Full text of Immigratoin and Refugee Board, Refugee Protection Division decisions, based on the Refugee Law Lab's [Refugee Protection Division Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/rpd/) (2002-2020) (updated Dec 1 2023) Note that this is a legacy dataset as the IRB is no longer publishing RPD decisions. For more recent RPD decisions obtained via Access to Information Requests see the RLLR dataset.

- RLLR: Full text of Immigration and Refugee Board, Refugee Protection Division decisions, as reported in the [Refugee Law Lab Reporter](https://refugeelab.ca/rllr), based on the Refugee Law Lab's [RLLR Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/rllr/) (2019 – present) (updated Apr 1 2024)

- SST: Full text of Social Security Tribunal of Canada decisions, baed on the Refugee Law Lab's [Social Security Tribunal Bulk Decisions Dataset](https://refugeelab.ca/bulk-data/sst/) (2013 – present) (updated Apr 1 2024)

#### Legislation & Regulations

- LEGISLATION-FED: Text of Federal legislation in the [Consolidated Acts](https://laws-lois.justice.gc.ca/eng/acts/) maintained by the Federal Department of Justice, as reproduced in the Refugee Law Lab's [Federal Bulk Legislation Dataset](https://refugeelab.ca/bulk-data/legislation-fed/) (updated May 13 2024)

- REGULATIONS-FED: Text of Federal legislation in the [Consolidated Regulations](https://laws-lois.justice.gc.ca/eng/regulations/) maintained by the Federal Department of Justice, as reproduced in the Refugee Law Lab's [Federal Bulk Regulations Dataset](https://refugeelab.ca/bulk-data/regulations-fed/) (updated May 13 2024)


### Data Fields

- citation (string): Legal citation for the document (neutral citation where available)

- citation2 (string): For some documents multiple citations are available (e.g. for some periods
the Supreme Court of Canada provided both official reported citation and neutral citation)

- dataset (string): Name of the data instance (e.g. "SCC", "FCA", "FC", "TCC", etc)

- year (int32): Year of the document date, which can be useful for filtering

- name (string): Name of the document, typically the style of cause of cases and the short title for legislation and regulations

- language (string): Language of the document, "en" for English, "fr" for French, "" for no language specified

- document_date (string): Date of the document (yyyy-mm-dd)

- source_url (string): URL where the document was scraped and where the official version can be found

- scraped_timestamp (string): Date the document was scraped (yyyy-mm-dd)

- unofficial_text (string): Full text of the document (unofficial version, for official version see source_url)

- other (string): Field for additional metadata in JSON format, currently a blank string for most datasets

### Data Languages

Many documents are available in both English and French. Some are only available in one of the two languages.

### Data Splits

The data has not been split, so all files are in the train split. If splitting for training/validation, 
some thought should be given to whether it is necessary to limit to one language or to ensure that both
English and French versions of the same documents (where available) are put into the same split.

### Data Loading

To load all data instances:

```python
  from datasets import load_dataset
  dataset = load_dataset("refugee-law-lab/canadian-legal-data", split="train")
```

To load only a specific data instance, for example only the SCC data instance:

```python
  from datasets import load_dataset
  dataset = load_dataset("refugee-law-lab/canadian-legal-data", "SCC", split="train") 
```

## Dataset Creation

### Curation Rationale

The dataset includes all the [Bulk Legal Data](https://refugeelab.ca/bulk-data) made publicly available by 
the Refugee Law Lab. The Lab has focused on federal law and regulations, federal courts (e.g. Supreme Court of Canada, Federal Court of 
Appeal, Federal Court) and federal administrative tribunals (e.g. Immigration and Refugee Board) because 
immigration and refugee law, which is the main area of interest of the Lab, operates mostly at the federal level.

### Source Data

#### Initial Data Collection and Normalization

Details (including links to github repos with code) are available via links on the Refugee Law Lab's 
[Bulk Legal Data](https://refugeelab.ca/bulk-data/) page.

### Personal and Sensitive Information

Documents may include personal and sensitive information. All documents have been published online or 
otherwise released publicly by the relevant government body, court or tribunal. While the open court principle mandates 
that court (and some tribunal) materials be made available to the public, there are privacy risks when some of these 
materials become easily and widely available. These privacy risks are particularly acute for marginalized groups, 
including refugees and other non-citizens whose personal and sensitive information is included in some of the
documents in this dataset. For example, imagine a repressive government working with private data aggregators to 
collect information that is used to target families of political opponents who have sought asylum abroad.
One mechanism used to try to achieve a balance between the open court principle 
and privacy is that in publishing court documents in this dataset, the relevant courts and tribunals prohibit 
search engines from indexing the documents. Users of this data are required to do the same.

### Non-Official Versions

Documents included in this dataset are unofficial copies. For official versions published by 
the Government of Canada, please see the source URLs.

### Non-Affiliation / Endorsement

The reproduction of documents in this dataset was not done in affiliation with, or with the endorsement of 
the Government of Canada.

## Considerations for Using the Data

### Social Impact of Dataset

The Refugee Law Lab recognizes that this dataset -- and further research using the dataset -- raises challenging 
questions about how to balance protecting privacy, enhancing government transparency, addressing information 
asymmetries, and building technologies that leverage data to advance the rights and interests of 
refugees and other displaced people, as well as assisting those working with them (rather than technologies that 
[enhance the power of states](https://citizenlab.ca/2018/09/bots-at-the-gate-human-rights-analysis-automated-decision-making-in-canadas-immigration-refugee-system/) 
to control the movement of people across borders).

More broadly, the Refugee Law Lab also recognizes that considerations around privacy and data protection are complex 
and evolving. When working on migration, refugee law, data, technology and surveillance, we strive to foreground 
intersectional understandings of the systemic harms perpetuated against groups historically made marginalized. We 
encourage other users to do the same.

We also encourage users to try to avoid participating in building technologies that harm refugees and other 
marginalized groups, as well as to connect with [community organizations](https://www.migrationtechmonitor.com/ways-to-help) 
working in this space, and to [listen directly](https://www.migrationtechmonitor.com/about-us) and learn from people who are affected by new technologies. 

We will review the use these datasets periodically to examine whether continuing to publicly release these datasets achieves 
the Refugee Law Lab's goals of advancing the rights and interests of refugees and other marginalized groups without creating 
disproportionate risks and harms, including risks related to privacy and human rights.


### Discussion of Biases

The dataset reflects many biases present in legal decision-making, including biases based on race, immigration status, gender, sexual orientation, religion, disability, socio-economic class, and other intersecting categories of discrimination.

### Other Known Limitations

Legislation and regulations do not include tables, annexes or schedules. Original sources should be consulted if these are relevant.

Publicly available court and tribunal decisions are not a representative sample of legal decision-making -- and in some cases may reflect 
significantly skewed samples. To give one example, the vast majority of Federal Court judicial reviews of refugee determinations involve negative 
first instance decisions even thought most first instance decisions are positive (this occurs because the government seldom applies for judicial 
reviews of positive first instance decisions whereas claimants frequently apply for judicial review of negative decisions). As such, generative models
built partly on this dataset risk amplifying negative refugee decision-making (rather than more common positive refugee decision-making). 

Due to the ways that 
legal datasets may be skewed, users of this dataset are encouraged to collaborate with or consult domain experts.

## Additional Information


### Licensing Information

Attribution-NonCommercial 4.0 International ([CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/))

NOTE: Users must also comply with upstream licensing for the [SCC](https://www.scc-csc.ca/terms-avis/notice-enonce-eng.aspx), 
[FCA](https://www.fca-caf.gc.ca/en/pages/important-notices) & [FC](https://www.fct-cf.gc.ca/en/pages/important-notices) data instances, as 
well as requests on source urls not to allow indexing of the documents by search engines to protect privacy. As a result, users must 
not make the data available in formats or locations that can be indexed by search engines.

### Warranties / Representations

We make no warranties or representations that the data included in this dataset is complete or accurate. Data 
were obtained through academic research projects, including projects that use automated processes. 
While we try to make the data as accurate as possible, our methodologies may result in 
inaccurate or outdated data. As such, data should be viewed as preliminary information aimed to prompt 
further research and discussion, rather than as definitive information.

### Dataset Curators

[Sean Rehaag](https://www.osgoode.yorku.ca/faculty-and-staff/rehaag-sean), Osgoode Hall Law School Professor & Director of the Refugee Law Lab

### Citation Information

Sean Rehaag, "Refugee Law Lab: Canadian Legal Data" (2023) online: Hugging Face: <https://huggingface.co/datasets/refugee-law-lab/canadian-legal-data> (updated 2024).

### Acknowledgements

This project draws on research supported by the Social Sciences and Humanities Research Council and the Law Foundation of Ontario. 

The project was inspired in part by the excellent prior work by [pile-of-law](https://huggingface.co/datasets/pile-of-law/pile-of-law) (Peter Henderson et al, "Pile of Law: Learning 
Responsible Data Filtering from the Law and a 256GB Open-Source Legal Dataset" (2022), online: arXiv: https://arxiv.org/abs/2207.00220).