Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
pandas
License:
srehaag commited on
Commit
239fa5d
·
1 Parent(s): d39afd5

initial commit

Browse files
Files changed (2) hide show
  1. README.md +196 -0
  2. train.parquet +3 -0
README.md CHANGED
@@ -1,3 +1,199 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ - fr
6
+ size_categories:
7
+ - 100K<n<1M
8
  ---
9
+ # Refugee Law Lab: Federal Court Immigration Dockets
10
+
11
+ ## Dataset Summary
12
+
13
+ The [Refugee Law Lab](https://refugeelab.ca) supports bulk open-access to Canadian legal data to facilitate research and advocacy.
14
+ Bulk open-access helps avoid asymmetrical access-to-justice and amplification of marginalization that
15
+ results when commercial actors leverage proprietary
16
+ legal datasets for profit -- a particular concern in the border control setting.
17
+
18
+ This is the dataset is an updated version of a dataset used for a [research project](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4322881) published in the Queen's Law Journal, undertaken at the Refugee Law Lab about outcomes in stays of removal in Canada's
19
+ Federal Court. That initial project includes information from the online Federal Court dockets for all immigration law cases filed between
20
+ 1997 and 2022. This updated version includes immigration law cases filed between 1997 to 2024.
21
+
22
+ The dataset can be used for legal analytics (i.e. identifying patterns in legal
23
+ decision-making), to test ML and NLP tools on a bilingual dataset of Canadian legal materials, and to
24
+ pretrain language models for various tasks.
25
+
26
+
27
+ ## Dataset Structure
28
+
29
+ ### Data Instance
30
+
31
+ The datset includes a single data instance of all online Federal Court dockets involving immigration law filed between 1997 and 2024,
32
+ as they appeared when the data was gathered up to June 2025 (note: to see most recent scrape for individual files, see scraped_timestam).
33
+
34
+ ### Data Fields
35
+
36
+ Data fields match the formart used for the Refugee Law Lab's [Canadian Legal Data dataset](https://huggingface.co/datasets/refugee-law-lab/canadian-legal-data).
37
+
38
+ - citation (string): Legal citation for the document (neutral citation where available). In this dataset, the legal citaiton is the docket number, which is a identifer for the file assigned by the Federal Court. Docket numbers take the form IMM-#-YY. IMM signals that this is an immigration law docket, # is a sequential number starting at 1 that represents the order in which applications were received in a given year, and YY is the last two digits of the year in which the application was initially filed.
39
+
40
+ - year (int32): Year of the document date, which can be useful for filtering. For this dataset, the year is the year when the application was initially filed.
41
+
42
+ - name (string): Name of the document, in this dataset the style of cause of a cour file
43
+
44
+ - date_filed (string): Date of the document (yyyy-mm-dd). In this dataset the year is the date the application was filed.
45
+
46
+ - city_filed (string): City where the application was initially filed
47
+
48
+ - nature (string): A category of proceedings assigned by the Federal Court
49
+
50
+ - class (string): A second category of proceedings assigned by the Federal court
51
+
52
+ - track (string): A third category of proceedings assigned by the Federal Court
53
+
54
+ - documents (list of dictionaries): A list of dictionaries containing each docket entry (or row in the table of docket entries in a docket). Each dictionary contains the following key/value pairs:
55
+
56
+ * RE_NO: The number assigned to the docket entry by the Federal Court
57
+
58
+ * DOCNO: Where the entry involves the filing of a document, the number assigned to that document by the Federal Court
59
+
60
+ * DOC_DT: The date of the docket entry
61
+
62
+ * RECORDED_ENTRY: The content of the docket entry
63
+
64
+ - source_url (string): URL where the document was scraped and where the official version can be found
65
+
66
+ - scraped_timestamp (string): Date the document was scraped (yyyy-mm-dd)
67
+
68
+
69
+ ### Data Languages
70
+
71
+ Some dockets are in English, some in French, and some alternate between English and French
72
+
73
+ ### Data Splits
74
+
75
+ The data has not been split, so all data is in the train split.
76
+
77
+ ### Data Loading
78
+
79
+ To load the data:
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+ dataset = load_dataset("refugee-law-lab/luck-of-the-draw-iii", split="train")
84
+ ```
85
+
86
+ To convert to dataframe:
87
+
88
+ ```python
89
+ from datasets import load_dataset
90
+ import pandas as pd
91
+ df = load_dataset(load_dataset("refugee-law-lab/luck-of-the-draw-iii", split="train")).to_pandas()
92
+
93
+ ```
94
+
95
+ Note: If using collab and you encounter errors, try pip install --upgrade datasets
96
+
97
+ ## Dataset Creation
98
+
99
+ ### Curation Rationale
100
+
101
+ The dataset includes all Federal Court immigration law dockets available on the Federal Court's website at the time of research (November 2022). The Refugee Law Lab gathered this data for several projects, including the [Refugee Law Lab Portal](https://rllp.ca/) and the research article on Federal Court stays linked above.
102
+
103
+ ### Source Data
104
+
105
+ #### Source
106
+
107
+ All data was gathered via the Federal Court's [website](https://www.fct-cf.gc.ca/en/home).
108
+
109
+ #### Initial Data Collection and Normalization
110
+
111
+ Details are available via links on the Refugee Law Lab's Github respository [Luck of the Draw III: Code & Data]
112
+ (https://github.com/Refugee-Law-Lab/luck-of-the-draw-iii).
113
+
114
+ ### Personal and Sensitive Information
115
+
116
+ Documents may include personal and sensitive information. All documents have been published online by the Federal Court. While the open court principle mandates
117
+ that court materials be made available to the public, there are privacy risks when these
118
+ materials become easily and widely available. These privacy risks are particularly acute for marginalized groups,
119
+ including refugees and other non-citizens whose personal and sensitive information is included in some of the
120
+ documents in this dataset. For example, imagine a repressive government working with private data aggregators to
121
+ collect information that is used to target families of political opponents who have sought asylum abroad.
122
+ One mechanism used to try to achieve a balance between the open court principle
123
+ and privacy is that in publishing the documents in this dataset, the relevant courts and tribunals prohibit
124
+ search engines from indexing the documents. Users of this data are required to do the same.
125
+
126
+ ### Non-Official Versions
127
+
128
+ Documents included in this dataset are unofficial copies. For official versions published by
129
+ the Government of Canada, please see the source URLs.
130
+
131
+ ### Non-Affiliation / Endorsement
132
+
133
+ The reproduction of documents in this dataset was not done in affiliation with, or with the endorsement of
134
+ the Federal Court or the Government of Canada.
135
+
136
+ ## Considerations for Using the Data
137
+
138
+ ### Social Impact of Dataset
139
+
140
+ The Refugee Law Lab recognizes that this dataset -- and further research using the dataset -- raises challenging
141
+ questions about how to balance protecting privacy, enhancing government transparency, addressing information
142
+ asymmetries, and building technologies that leverage data to advance the rights and interests of
143
+ refugees and other displaced people, as well as assisting those working with them (rather than technologies that
144
+ [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/)
145
+ to control the movement of people across borders).
146
+
147
+ More broadly, the Refugee Law Lab also recognizes that considerations around privacy and data protection are complex
148
+ and evolving. When working on migration, refugee law, data, technology and surveillance, we strive to foreground
149
+ intersectional understandings of the systemic harms perpetuated against groups historically made marginalized. We
150
+ encourage other users to do the same.
151
+
152
+ We also encourage users to try to avoid participating in building technologies that harm refugees and other
153
+ marginalized groups, as well as to connect with [community organizations](https://www.migrationtechmonitor.com/ways-to-help)
154
+ working in this space, and to [listen directly](https://www.migrationtechmonitor.com/about-us) and learn from people who are affected by new technologies.
155
+
156
+ We will review the use these datasets periodically to examine whether continuing to publicly release these datasets achieves
157
+ the Refugee Law Lab's goals of advancing the rights and interests of refugees and other marginalized groups without creating
158
+ disproportionate risks and harms, including risks related to privacy and human rights.
159
+
160
+
161
+ ### Discussion of Biases
162
+
163
+ 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.
164
+
165
+ ### Other Known Limitations
166
+
167
+ Due to the ways that all
168
+ legal datasets may be skewed, users of this dataset are encouraged to collaborate with or consult domain experts.
169
+
170
+ ## Additional Information
171
+
172
+
173
+ ### Licensing Information
174
+
175
+ Attribution-NonCommercial 4.0 International ([CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/))
176
+
177
+ NOTE: Users must also comply with [upstream licensing](https://www.fct-cf.gc.ca/en/pages/important-notices) for data obtained from the Federal Court, as
178
+ well as requests on source urls not to allow indexing of the documents by search engines to protect privacy. As a result, users must
179
+ not make the data available in formats or locations that can be indexed by search engines.
180
+
181
+ ### Warranties / Representations
182
+
183
+ We make no warranties or representations that the data included in this dataset is complete or accurate. Data
184
+ were obtained through academic research projects, including projects that use automated processes.
185
+ While we try to make the data as accurate as possible, our methodologies may result in
186
+ inaccurate or outdated data. As such, data should be viewed as preliminary information aimed to prompt
187
+ further research and discussion, rather than as definitive information.
188
+
189
+ ### Dataset Curators
190
+
191
+ [Sean Rehaag](https://www.osgoode.yorku.ca/faculty-and-staff/rehaag-sean), Osgoode Hall Law School Professor & Director of the Refugee Law Lab
192
+
193
+ ### Citation Information
194
+
195
+ Sean Rehaag, "Luck of the Draw III: Code & Data" (2023) online: Github: <https://github.com/Refugee-Law-Lab/luck-of-the-draw-iii>, updated 2025 at: <https://huggingface.co/datasets/refugee-law-lab/fc-imm-dockets/>.
196
+
197
+ ### Acknowledgements
198
+
199
+ This project draws on research supported by the Social Sciences and Humanities Research Council, the Law Foundation of Ontario, and the Digital Research Alliance of Canada. Jacob Danovich assisted with the infrastructure and scraping code for this project.
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5779f71e8b7617153a8f09bdcb21a2bf944b0c5536017ce198f5309e6f10cf2
3
+ size 242732790