Datasets:

Convert dataset to Parquet

#1
.DS_Store DELETED
Binary file (8.2 kB)
 
.ipynb_checkpoints/demo-checkpoint.ipynb DELETED
@@ -1,512 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 10,
6
- "id": "3c6f4757-0572-48ec-8159-206bbf2e08fd",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "from datasets import load_dataset"
11
- ]
12
- },
13
- {
14
- "cell_type": "markdown",
15
- "id": "27e4d6d8-b201-482b-9b0a-688e1a21c9c0",
16
- "metadata": {},
17
- "source": [
18
- "# Load `questions`"
19
- ]
20
- },
21
- {
22
- "cell_type": "code",
23
- "execution_count": 17,
24
- "id": "2cb75e7c-b7eb-4601-85f3-cc27c1f5ff94",
25
- "metadata": {},
26
- "outputs": [
27
- {
28
- "name": "stderr",
29
- "output_type": "stream",
30
- "text": [
31
- "Downloading builder script: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.64k/3.64k [00:00<00:00, 13.8MB/s]\n"
32
- ]
33
- },
34
- {
35
- "name": "stdout",
36
- "output_type": "stream",
37
- "text": [
38
- "Downloading and preparing dataset housing_qa/questions to /Users/neelguha/.cache/huggingface/datasets/reglab___housing_qa/questions/1.0.0/8bf686206d753eb1bc023c1aa0b7841398d312cdf6a0e537f27fb74f6eab4eef...\n"
39
- ]
40
- },
41
- {
42
- "name": "stderr",
43
- "output_type": "stream",
44
- "text": [
45
- "Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 987k/987k [00:00<00:00, 6.72MB/s]\n",
46
- " \r"
47
- ]
48
- },
49
- {
50
- "name": "stdout",
51
- "output_type": "stream",
52
- "text": [
53
- "Dataset housing_qa downloaded and prepared to /Users/neelguha/.cache/huggingface/datasets/reglab___housing_qa/questions/1.0.0/8bf686206d753eb1bc023c1aa0b7841398d312cdf6a0e537f27fb74f6eab4eef. Subsequent calls will reuse this data.\n"
54
- ]
55
- },
56
- {
57
- "data": {
58
- "text/html": [
59
- "<div>\n",
60
- "<style scoped>\n",
61
- " .dataframe tbody tr th:only-of-type {\n",
62
- " vertical-align: middle;\n",
63
- " }\n",
64
- "\n",
65
- " .dataframe tbody tr th {\n",
66
- " vertical-align: top;\n",
67
- " }\n",
68
- "\n",
69
- " .dataframe thead th {\n",
70
- " text-align: right;\n",
71
- " }\n",
72
- "</style>\n",
73
- "<table border=\"1\" class=\"dataframe\">\n",
74
- " <thead>\n",
75
- " <tr style=\"text-align: right;\">\n",
76
- " <th></th>\n",
77
- " <th>idx</th>\n",
78
- " <th>state</th>\n",
79
- " <th>question</th>\n",
80
- " <th>answer</th>\n",
81
- " <th>question_group</th>\n",
82
- " <th>statutes</th>\n",
83
- " <th>original_question</th>\n",
84
- " <th>caveats</th>\n",
85
- " </tr>\n",
86
- " </thead>\n",
87
- " <tbody>\n",
88
- " <tr>\n",
89
- " <th>0</th>\n",
90
- " <td>0</td>\n",
91
- " <td>Alabama</td>\n",
92
- " <td>Is there a state/territory law regulating resi...</td>\n",
93
- " <td>Yes</td>\n",
94
- " <td>69</td>\n",
95
- " <td>{'statute_idx': [431263], 'citation': ['ALA. C...</td>\n",
96
- " <td>Is there a state/territory law regulating resi...</td>\n",
97
- " <td>[]</td>\n",
98
- " </tr>\n",
99
- " <tr>\n",
100
- " <th>1</th>\n",
101
- " <td>163</td>\n",
102
- " <td>Alabama</td>\n",
103
- " <td>Does the law specify a minimum number of days ...</td>\n",
104
- " <td>Yes</td>\n",
105
- " <td>23</td>\n",
106
- " <td>{'statute_idx': [431277], 'citation': ['ALA. C...</td>\n",
107
- " <td>Does the law specify a minimum number of days ...</td>\n",
108
- " <td>[]</td>\n",
109
- " </tr>\n",
110
- " <tr>\n",
111
- " <th>2</th>\n",
112
- " <td>237</td>\n",
113
- " <td>Alabama</td>\n",
114
- " <td>Does the law specify rebuttals available to te...</td>\n",
115
- " <td>Yes</td>\n",
116
- " <td>116</td>\n",
117
- " <td>{'statute_idx': [417060, 431274, 431280, 43127...</td>\n",
118
- " <td>Does the law specify rebuttals available to a ...</td>\n",
119
- " <td>[]</td>\n",
120
- " </tr>\n",
121
- " <tr>\n",
122
- " <th>3</th>\n",
123
- " <td>286</td>\n",
124
- " <td>Alabama</td>\n",
125
- " <td>In eviction proceedings, does the filing of an...</td>\n",
126
- " <td>Yes</td>\n",
127
- " <td>4</td>\n",
128
- " <td>{'statute_idx': [431286], 'citation': ['ALA. C...</td>\n",
129
- " <td>Does the filing of an appeal stay the executio...</td>\n",
130
- " <td>[]</td>\n",
131
- " </tr>\n",
132
- " <tr>\n",
133
- " <th>4</th>\n",
134
- " <td>353</td>\n",
135
- " <td>Alabama</td>\n",
136
- " <td>Is it specified whether a landlord waives thei...</td>\n",
137
- " <td>Yes</td>\n",
138
- " <td>201</td>\n",
139
- " <td>{'statute_idx': [431280], 'citation': ['ALA. C...</td>\n",
140
- " <td>Does a landlord waive their right to evict for...</td>\n",
141
- " <td>[A landlord waives their right to evict by acc...</td>\n",
142
- " </tr>\n",
143
- " </tbody>\n",
144
- "</table>\n",
145
- "</div>"
146
- ],
147
- "text/plain": [
148
- " idx state question answer \\\n",
149
- "0 0 Alabama Is there a state/territory law regulating resi... Yes \n",
150
- "1 163 Alabama Does the law specify a minimum number of days ... Yes \n",
151
- "2 237 Alabama Does the law specify rebuttals available to te... Yes \n",
152
- "3 286 Alabama In eviction proceedings, does the filing of an... Yes \n",
153
- "4 353 Alabama Is it specified whether a landlord waives thei... Yes \n",
154
- "\n",
155
- " question_group statutes \\\n",
156
- "0 69 {'statute_idx': [431263], 'citation': ['ALA. C... \n",
157
- "1 23 {'statute_idx': [431277], 'citation': ['ALA. C... \n",
158
- "2 116 {'statute_idx': [417060, 431274, 431280, 43127... \n",
159
- "3 4 {'statute_idx': [431286], 'citation': ['ALA. C... \n",
160
- "4 201 {'statute_idx': [431280], 'citation': ['ALA. C... \n",
161
- "\n",
162
- " original_question \\\n",
163
- "0 Is there a state/territory law regulating resi... \n",
164
- "1 Does the law specify a minimum number of days ... \n",
165
- "2 Does the law specify rebuttals available to a ... \n",
166
- "3 Does the filing of an appeal stay the executio... \n",
167
- "4 Does a landlord waive their right to evict for... \n",
168
- "\n",
169
- " caveats \n",
170
- "0 [] \n",
171
- "1 [] \n",
172
- "2 [] \n",
173
- "3 [] \n",
174
- "4 [A landlord waives their right to evict by acc... "
175
- ]
176
- },
177
- "execution_count": 17,
178
- "metadata": {},
179
- "output_type": "execute_result"
180
- }
181
- ],
182
- "source": [
183
- "questions = load_dataset(\"reglab/housing_qa\", \"questions\", split=\"test\", download_mode=\"force_redownload\")\n",
184
- "questions.to_pandas().head(5)"
185
- ]
186
- },
187
- {
188
- "cell_type": "code",
189
- "execution_count": 18,
190
- "id": "3931e731-006f-4731-8350-a7f83ea3f298",
191
- "metadata": {},
192
- "outputs": [
193
- {
194
- "data": {
195
- "text/plain": [
196
- "{'idx': 0,\n",
197
- " 'state': 'Alabama',\n",
198
- " 'question': 'Is there a state/territory law regulating residential evictions?',\n",
199
- " 'answer': 'Yes',\n",
200
- " 'question_group': 69,\n",
201
- " 'statutes': {'statute_idx': [431263],\n",
202
- " 'citation': ['ALA. CODE § 35-9A-141(11)'],\n",
203
- " 'excerpt': ['(11) “premises” means a dwelling unit and the structure of which it is a part and facilities and appurtenances therein and grounds, areas, and facilities held out for the use of tenants generally or whose use is promised by the rental agreement to the tenant;']},\n",
204
- " 'original_question': 'Is there a state/territory law regulating residential evictions?',\n",
205
- " 'caveats': ['']}"
206
- ]
207
- },
208
- "execution_count": 18,
209
- "metadata": {},
210
- "output_type": "execute_result"
211
- }
212
- ],
213
- "source": [
214
- "questions[0]"
215
- ]
216
- },
217
- {
218
- "cell_type": "markdown",
219
- "id": "c30a72f9-0ebe-4d33-abbd-e53883d04be5",
220
- "metadata": {},
221
- "source": [
222
- "# RC Questions"
223
- ]
224
- },
225
- {
226
- "cell_type": "code",
227
- "execution_count": 8,
228
- "id": "92c9606a-09a5-44c6-94f2-4c9773c1a754",
229
- "metadata": {},
230
- "outputs": [
231
- {
232
- "name": "stderr",
233
- "output_type": "stream",
234
- "text": [
235
- "Downloading data: 100%|████████████████████████████████████████████████████| 987k/987k [00:00<00:00, 10.7MB/s]\n",
236
- "Generating test split: 6853 examples [00:00, 25871.49 examples/s]\n"
237
- ]
238
- },
239
- {
240
- "data": {
241
- "text/html": [
242
- "<div>\n",
243
- "<style scoped>\n",
244
- " .dataframe tbody tr th:only-of-type {\n",
245
- " vertical-align: middle;\n",
246
- " }\n",
247
- "\n",
248
- " .dataframe tbody tr th {\n",
249
- " vertical-align: top;\n",
250
- " }\n",
251
- "\n",
252
- " .dataframe thead th {\n",
253
- " text-align: right;\n",
254
- " }\n",
255
- "</style>\n",
256
- "<table border=\"1\" class=\"dataframe\">\n",
257
- " <thead>\n",
258
- " <tr style=\"text-align: right;\">\n",
259
- " <th></th>\n",
260
- " <th>idx</th>\n",
261
- " <th>state</th>\n",
262
- " <th>question</th>\n",
263
- " <th>answer</th>\n",
264
- " <th>question_group</th>\n",
265
- " <th>statutes</th>\n",
266
- " <th>original_question</th>\n",
267
- " <th>caveats</th>\n",
268
- " </tr>\n",
269
- " </thead>\n",
270
- " <tbody>\n",
271
- " <tr>\n",
272
- " <th>0</th>\n",
273
- " <td>0</td>\n",
274
- " <td>Alabama</td>\n",
275
- " <td>Is there a state/territory law regulating resi...</td>\n",
276
- " <td>Yes</td>\n",
277
- " <td>69</td>\n",
278
- " <td>{'statute_idx': [431263], 'citation': ['ALA. C...</td>\n",
279
- " <td>Is there a state/territory law regulating resi...</td>\n",
280
- " <td>[[]]</td>\n",
281
- " </tr>\n",
282
- " <tr>\n",
283
- " <th>1</th>\n",
284
- " <td>163</td>\n",
285
- " <td>Alabama</td>\n",
286
- " <td>Does the law specify a minimum number of days ...</td>\n",
287
- " <td>Yes</td>\n",
288
- " <td>23</td>\n",
289
- " <td>{'statute_idx': [431277], 'citation': ['ALA. C...</td>\n",
290
- " <td>Does the law specify a minimum number of days ...</td>\n",
291
- " <td>[[]]</td>\n",
292
- " </tr>\n",
293
- " <tr>\n",
294
- " <th>2</th>\n",
295
- " <td>237</td>\n",
296
- " <td>Alabama</td>\n",
297
- " <td>Does the law specify rebuttals available to te...</td>\n",
298
- " <td>Yes</td>\n",
299
- " <td>116</td>\n",
300
- " <td>{'statute_idx': [417060, 431274, 431280, 43127...</td>\n",
301
- " <td>Does the law specify rebuttals available to a ...</td>\n",
302
- " <td>[[]]</td>\n",
303
- " </tr>\n",
304
- " <tr>\n",
305
- " <th>3</th>\n",
306
- " <td>286</td>\n",
307
- " <td>Alabama</td>\n",
308
- " <td>In eviction proceedings, does the filing of an...</td>\n",
309
- " <td>Yes</td>\n",
310
- " <td>4</td>\n",
311
- " <td>{'statute_idx': [431286], 'citation': ['ALA. C...</td>\n",
312
- " <td>Does the filing of an appeal stay the executio...</td>\n",
313
- " <td>[[]]</td>\n",
314
- " </tr>\n",
315
- " <tr>\n",
316
- " <th>4</th>\n",
317
- " <td>353</td>\n",
318
- " <td>Alabama</td>\n",
319
- " <td>Is it specified whether a landlord waives thei...</td>\n",
320
- " <td>Yes</td>\n",
321
- " <td>201</td>\n",
322
- " <td>{'statute_idx': [431280], 'citation': ['ALA. C...</td>\n",
323
- " <td>Does a landlord waive their right to evict for...</td>\n",
324
- " <td>[[A, , l, a, n, d, l, o, r, d, , w, a, i, v,...</td>\n",
325
- " </tr>\n",
326
- " </tbody>\n",
327
- "</table>\n",
328
- "</div>"
329
- ],
330
- "text/plain": [
331
- " idx state question answer \\\n",
332
- "0 0 Alabama Is there a state/territory law regulating resi... Yes \n",
333
- "1 163 Alabama Does the law specify a minimum number of days ... Yes \n",
334
- "2 237 Alabama Does the law specify rebuttals available to te... Yes \n",
335
- "3 286 Alabama In eviction proceedings, does the filing of an... Yes \n",
336
- "4 353 Alabama Is it specified whether a landlord waives thei... Yes \n",
337
- "\n",
338
- " question_group statutes \\\n",
339
- "0 69 {'statute_idx': [431263], 'citation': ['ALA. C... \n",
340
- "1 23 {'statute_idx': [431277], 'citation': ['ALA. C... \n",
341
- "2 116 {'statute_idx': [417060, 431274, 431280, 43127... \n",
342
- "3 4 {'statute_idx': [431286], 'citation': ['ALA. C... \n",
343
- "4 201 {'statute_idx': [431280], 'citation': ['ALA. C... \n",
344
- "\n",
345
- " original_question \\\n",
346
- "0 Is there a state/territory law regulating resi... \n",
347
- "1 Does the law specify a minimum number of days ... \n",
348
- "2 Does the law specify rebuttals available to a ... \n",
349
- "3 Does the filing of an appeal stay the executio... \n",
350
- "4 Does a landlord waive their right to evict for... \n",
351
- "\n",
352
- " caveats \n",
353
- "0 [[]] \n",
354
- "1 [[]] \n",
355
- "2 [[]] \n",
356
- "3 [[]] \n",
357
- "4 [[A, , l, a, n, d, l, o, r, d, , w, a, i, v,... "
358
- ]
359
- },
360
- "execution_count": 8,
361
- "metadata": {},
362
- "output_type": "execute_result"
363
- }
364
- ],
365
- "source": [
366
- "questions = load_dataset(\"reglab/housing_qa\", \"rc_questions\")\n",
367
- "questions[\"test\"].to_pandas().head(5)"
368
- ]
369
- },
370
- {
371
- "cell_type": "markdown",
372
- "id": "692490c0-eaa3-4f88-9b25-630f6ce736a3",
373
- "metadata": {},
374
- "source": [
375
- "# Statutes"
376
- ]
377
- },
378
- {
379
- "cell_type": "code",
380
- "execution_count": 12,
381
- "id": "b4ce7ae9-618f-4594-be69-b53a58e580e4",
382
- "metadata": {},
383
- "outputs": [
384
- {
385
- "data": {
386
- "text/html": [
387
- "<div>\n",
388
- "<style scoped>\n",
389
- " .dataframe tbody tr th:only-of-type {\n",
390
- " vertical-align: middle;\n",
391
- " }\n",
392
- "\n",
393
- " .dataframe tbody tr th {\n",
394
- " vertical-align: top;\n",
395
- " }\n",
396
- "\n",
397
- " .dataframe thead th {\n",
398
- " text-align: right;\n",
399
- " }\n",
400
- "</style>\n",
401
- "<table border=\"1\" class=\"dataframe\">\n",
402
- " <thead>\n",
403
- " <tr style=\"text-align: right;\">\n",
404
- " <th></th>\n",
405
- " <th>citation</th>\n",
406
- " <th>path</th>\n",
407
- " <th>state</th>\n",
408
- " <th>text</th>\n",
409
- " <th>idx</th>\n",
410
- " </tr>\n",
411
- " </thead>\n",
412
- " <tbody>\n",
413
- " <tr>\n",
414
- " <th>0</th>\n",
415
- " <td>MO Rev Stat § 1.010 (2021)</td>\n",
416
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
417
- " <td>missouri</td>\n",
418
- " <td>Effective - 28 Aug 2015 1.010. Common law in...</td>\n",
419
- " <td>0</td>\n",
420
- " </tr>\n",
421
- " <tr>\n",
422
- " <th>1</th>\n",
423
- " <td>MO Rev Stat § 1.020 (2021)</td>\n",
424
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
425
- " <td>missouri</td>\n",
426
- " <td>Effective - 28 Aug 2009 1.020. Definitions. ...</td>\n",
427
- " <td>1</td>\n",
428
- " </tr>\n",
429
- " <tr>\n",
430
- " <th>2</th>\n",
431
- " <td>MO Rev Stat § 1.025 (2021)</td>\n",
432
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
433
- " <td>missouri</td>\n",
434
- " <td>Effective - 28 Aug 1958 1.025. Registered ma...</td>\n",
435
- " <td>2</td>\n",
436
- " </tr>\n",
437
- " <tr>\n",
438
- " <th>3</th>\n",
439
- " <td>MO Rev Stat § 1.028 (2021)</td>\n",
440
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
441
- " <td>missouri</td>\n",
442
- " <td>Effective - 28 Aug 1999 1.028. English is th...</td>\n",
443
- " <td>3</td>\n",
444
- " </tr>\n",
445
- " <tr>\n",
446
- " <th>4</th>\n",
447
- " <td>MO Rev Stat § 1.030 (2021)</td>\n",
448
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
449
- " <td>missouri</td>\n",
450
- " <td>Effective - 28 Aug 1957 1.030. Plural includ...</td>\n",
451
- " <td>4</td>\n",
452
- " </tr>\n",
453
- " </tbody>\n",
454
- "</table>\n",
455
- "</div>"
456
- ],
457
- "text/plain": [
458
- " citation \\\n",
459
- "0 MO Rev Stat § 1.010 (2021) \n",
460
- "1 MO Rev Stat § 1.020 (2021) \n",
461
- "2 MO Rev Stat § 1.025 (2021) \n",
462
- "3 MO Rev Stat § 1.028 (2021) \n",
463
- "4 MO Rev Stat § 1.030 (2021) \n",
464
- "\n",
465
- " path state \\\n",
466
- "0 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
467
- "1 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
468
- "2 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
469
- "3 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
470
- "4 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
471
- "\n",
472
- " text idx \n",
473
- "0 Effective - 28 Aug 2015 1.010. Common law in... 0 \n",
474
- "1 Effective - 28 Aug 2009 1.020. Definitions. ... 1 \n",
475
- "2 Effective - 28 Aug 1958 1.025. Registered ma... 2 \n",
476
- "3 Effective - 28 Aug 1999 1.028. English is th... 3 \n",
477
- "4 Effective - 28 Aug 1957 1.030. Plural includ... 4 "
478
- ]
479
- },
480
- "execution_count": 12,
481
- "metadata": {},
482
- "output_type": "execute_result"
483
- }
484
- ],
485
- "source": [
486
- "statutes = load_dataset(\"reglab/housing_qa\", \"statutes\")\n",
487
- "statutes[\"corpus\"].to_pandas().head(5)"
488
- ]
489
- }
490
- ],
491
- "metadata": {
492
- "kernelspec": {
493
- "display_name": "Python 3 (ipykernel)",
494
- "language": "python",
495
- "name": "python3"
496
- },
497
- "language_info": {
498
- "codemirror_mode": {
499
- "name": "ipython",
500
- "version": 3
501
- },
502
- "file_extension": ".py",
503
- "mimetype": "text/x-python",
504
- "name": "python",
505
- "nbconvert_exporter": "python",
506
- "pygments_lexer": "ipython3",
507
- "version": "3.8.18"
508
- }
509
- },
510
- "nbformat": 4,
511
- "nbformat_minor": 5
512
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.ipynb_checkpoints/statistics-checkpoint.ipynb DELETED
@@ -1,125 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 22,
6
- "id": "fce498ac-4ea7-4e10-a15a-60ac41e3adce",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "from datasets import load_dataset\n",
11
- "from collections import Counter"
12
- ]
13
- },
14
- {
15
- "cell_type": "code",
16
- "execution_count": 23,
17
- "id": "73aaafd1-3ebb-42f7-b162-2e6bc630d195",
18
- "metadata": {},
19
- "outputs": [
20
- {
21
- "name": "stderr",
22
- "output_type": "stream",
23
- "text": [
24
- "Found cached dataset housing_qa (/Users/neelguha/.cache/huggingface/datasets/reglab___housing_qa/questions/1.0.0/c3f397c8b54111729d49ff66d6145d407a535b137643491f86e3dc7b858cf34a)\n"
25
- ]
26
- },
27
- {
28
- "data": {
29
- "text/plain": [
30
- "{'idx': 0,\n",
31
- " 'state': 'Alabama',\n",
32
- " 'question': 'Is there a state/territory law regulating residential evictions?',\n",
33
- " 'answer': 'Yes',\n",
34
- " 'question_group': 69,\n",
35
- " 'statutes': {'statute_idx': [431263],\n",
36
- " 'citation': ['ALA. CODE § 35-9A-141(11)'],\n",
37
- " 'excerpt': ['(11) “premises” means a dwelling unit and the structure of which it is a part and facilities and appurtenances therein and grounds, areas, and facilities held out for the use of tenants generally or whose use is promised by the rental agreement to the tenant;']},\n",
38
- " 'original_question': 'Is there a state/territory law regulating residential evictions?',\n",
39
- " 'caveats': ['']}"
40
- ]
41
- },
42
- "execution_count": 23,
43
- "metadata": {},
44
- "output_type": "execute_result"
45
- }
46
- ],
47
- "source": [
48
- "questions = load_dataset(\"reglab/housing_qa\", \"questions\", split=\"test\")\n",
49
- "questions[0]"
50
- ]
51
- },
52
- {
53
- "cell_type": "code",
54
- "execution_count": 24,
55
- "id": "c28a88fe-933f-424c-9b81-fc43eea34dee",
56
- "metadata": {},
57
- "outputs": [],
58
- "source": [
59
- "counts = []\n",
60
- "for sample in questions: \n",
61
- " if len(sample[\"caveats\"][0]) > 0:\n",
62
- " break "
63
- ]
64
- },
65
- {
66
- "cell_type": "code",
67
- "execution_count": 25,
68
- "id": "2c24819e-0019-4c60-9284-77bfa565ecc5",
69
- "metadata": {},
70
- "outputs": [
71
- {
72
- "data": {
73
- "text/plain": [
74
- "{'idx': 353,\n",
75
- " 'state': 'Alabama',\n",
76
- " 'question': 'Is it specified whether a landlord waives their right to evict for nonpayment of rent by accepting partial payment of rent?',\n",
77
- " 'answer': 'Yes',\n",
78
- " 'question_group': 201,\n",
79
- " 'statutes': {'statute_idx': [431280],\n",
80
- " 'citation': ['ALA. CODE § 35-9A-424'],\n",
81
- " 'excerpt': [\"Acceptance of rent with knowledge of a default by the tenant or acceptance of performance by the tenant that varies from the terms of the rental agreement constitutes a waiver of the landlord's right to terminate the rental agreement for that breach, unless otherwise agreed after the breach has occurred.\"]},\n",
82
- " 'original_question': 'Does a landlord waive their right to evict for nonpayment of rent by accepting partial payment of rent?',\n",
83
- " 'caveats': ['A landlord waives their right to evict by accepting payment of rent, Ala. Code § 35-9A-424, but the law does not specify whether acceptance of full or partial payment is required for the waiver.']}"
84
- ]
85
- },
86
- "execution_count": 25,
87
- "metadata": {},
88
- "output_type": "execute_result"
89
- }
90
- ],
91
- "source": [
92
- "sample"
93
- ]
94
- },
95
- {
96
- "cell_type": "code",
97
- "execution_count": null,
98
- "id": "893dbd5a-e351-43a9-b939-ed022a78b78a",
99
- "metadata": {},
100
- "outputs": [],
101
- "source": []
102
- }
103
- ],
104
- "metadata": {
105
- "kernelspec": {
106
- "display_name": "Python 3 (ipykernel)",
107
- "language": "python",
108
- "name": "python3"
109
- },
110
- "language_info": {
111
- "codemirror_mode": {
112
- "name": "ipython",
113
- "version": 3
114
- },
115
- "file_extension": ".py",
116
- "mimetype": "text/x-python",
117
- "name": "python",
118
- "nbconvert_exporter": "python",
119
- "pygments_lexer": "ipython3",
120
- "version": "3.8.18"
121
- }
122
- },
123
- "nbformat": 4,
124
- "nbformat_minor": 5
125
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -14,6 +14,96 @@ tags:
14
  size_categories:
15
  - 1K<n<10K
16
  license: cc-by-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
 
19
  `HousingQA` is a benchmark evaluating LLMs' abilities to answer questions about housing law in different states. See [the releasing paper](https://reglab.github.io/legal-rag-benchmarks/) for more information on construction.
 
14
  size_categories:
15
  - 1K<n<10K
16
  license: cc-by-sa-4.0
17
+ configs:
18
+ - config_name: questions
19
+ data_files:
20
+ - split: test
21
+ path: questions/test-*
22
+ - config_name: questions_aux
23
+ data_files:
24
+ - split: test
25
+ path: questions_aux/test-*
26
+ - config_name: statutes
27
+ data_files:
28
+ - split: corpus
29
+ path: statutes/corpus-*
30
+ dataset_info:
31
+ - config_name: questions
32
+ features:
33
+ - name: idx
34
+ dtype: int32
35
+ - name: state
36
+ dtype: string
37
+ - name: question
38
+ dtype: string
39
+ - name: answer
40
+ dtype: string
41
+ - name: question_group
42
+ dtype: int32
43
+ - name: statutes
44
+ list:
45
+ - name: statute_idx
46
+ dtype: int32
47
+ - name: citation
48
+ dtype: string
49
+ - name: excerpt
50
+ dtype: string
51
+ - name: original_question
52
+ dtype: string
53
+ - name: caveats
54
+ sequence: string
55
+ splits:
56
+ - name: test
57
+ num_bytes: 19100036
58
+ num_examples: 6853
59
+ download_size: 764083
60
+ dataset_size: 19100036
61
+ - config_name: questions_aux
62
+ features:
63
+ - name: idx
64
+ dtype: int32
65
+ - name: state
66
+ dtype: string
67
+ - name: question
68
+ dtype: string
69
+ - name: answer
70
+ dtype: string
71
+ - name: question_group
72
+ dtype: int32
73
+ - name: statutes
74
+ sequence:
75
+ - name: citation
76
+ dtype: string
77
+ - name: excerpt
78
+ dtype: string
79
+ - name: original_question
80
+ dtype: string
81
+ - name: caveats
82
+ sequence: string
83
+ splits:
84
+ - name: test
85
+ num_bytes: 26098993
86
+ num_examples: 9297
87
+ download_size: 1230753
88
+ dataset_size: 26098993
89
+ - config_name: statutes
90
+ features:
91
+ - name: citation
92
+ dtype: string
93
+ - name: path
94
+ dtype: string
95
+ - name: state
96
+ dtype: string
97
+ - name: text
98
+ dtype: string
99
+ - name: idx
100
+ dtype: int32
101
+ splits:
102
+ - name: corpus
103
+ num_bytes: 3370813107
104
+ num_examples: 1837403
105
+ download_size: 1268814206
106
+ dataset_size: 3370813107
107
  ---
108
 
109
  `HousingQA` is a benchmark evaluating LLMs' abilities to answer questions about housing law in different states. See [the releasing paper](https://reglab.github.io/legal-rag-benchmarks/) for more information on construction.
copy_data.py DELETED
@@ -1,22 +0,0 @@
1
- import os
2
- import shutil
3
- import zipfile
4
-
5
- # Ensure the data directory exists
6
- os.makedirs('data', exist_ok=True)
7
-
8
- # List of files to copy and compress
9
- files = ['questions.json', 'questions_aux.json']
10
-
11
- for file in files:
12
- # Source and destination paths
13
- src_path = os.path.join('old_data', file)
14
- dst_path = os.path.join('data', file + '.zip')
15
-
16
- # Copy and compress the file
17
- with zipfile.ZipFile(dst_path, 'w', zipfile.ZIP_DEFLATED) as zipf:
18
- zipf.write(src_path, arcname=file)
19
-
20
- print(f"Copied and compressed {file} to {dst_path}")
21
-
22
- print("All files have been copied and compressed successfully.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/.DS_Store DELETED
Binary file (6.15 kB)
 
demo.ipynb DELETED
@@ -1,523 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 10,
6
- "id": "3c6f4757-0572-48ec-8159-206bbf2e08fd",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "from datasets import load_dataset"
11
- ]
12
- },
13
- {
14
- "cell_type": "markdown",
15
- "id": "27e4d6d8-b201-482b-9b0a-688e1a21c9c0",
16
- "metadata": {},
17
- "source": [
18
- "# Load `questions`"
19
- ]
20
- },
21
- {
22
- "cell_type": "code",
23
- "execution_count": 28,
24
- "id": "2cb75e7c-b7eb-4601-85f3-cc27c1f5ff94",
25
- "metadata": {},
26
- "outputs": [
27
- {
28
- "name": "stderr",
29
- "output_type": "stream",
30
- "text": [
31
- "Downloading builder script: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.67k/3.67k [00:00<00:00, 11.9MB/s]\n"
32
- ]
33
- },
34
- {
35
- "name": "stdout",
36
- "output_type": "stream",
37
- "text": [
38
- "Downloading and preparing dataset housing_qa/questions (download: 963.72 KiB, generated: 18.27 MiB, post-processed: Unknown size, total: 19.21 MiB) to /Users/neelguha/.cache/huggingface/datasets/reglab___housing_qa/questions/1.0.0/72d4d5c21c6043dceebcc4cb378b5258ba6b3c0db013d32c0627b85a4c6f50bc...\n"
39
- ]
40
- },
41
- {
42
- "name": "stderr",
43
- "output_type": "stream",
44
- "text": [
45
- "Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 987k/987k [00:00<00:00, 7.34MB/s]\n",
46
- " \r"
47
- ]
48
- },
49
- {
50
- "name": "stdout",
51
- "output_type": "stream",
52
- "text": [
53
- "Dataset housing_qa downloaded and prepared to /Users/neelguha/.cache/huggingface/datasets/reglab___housing_qa/questions/1.0.0/72d4d5c21c6043dceebcc4cb378b5258ba6b3c0db013d32c0627b85a4c6f50bc. Subsequent calls will reuse this data.\n"
54
- ]
55
- },
56
- {
57
- "data": {
58
- "text/html": [
59
- "<div>\n",
60
- "<style scoped>\n",
61
- " .dataframe tbody tr th:only-of-type {\n",
62
- " vertical-align: middle;\n",
63
- " }\n",
64
- "\n",
65
- " .dataframe tbody tr th {\n",
66
- " vertical-align: top;\n",
67
- " }\n",
68
- "\n",
69
- " .dataframe thead th {\n",
70
- " text-align: right;\n",
71
- " }\n",
72
- "</style>\n",
73
- "<table border=\"1\" class=\"dataframe\">\n",
74
- " <thead>\n",
75
- " <tr style=\"text-align: right;\">\n",
76
- " <th></th>\n",
77
- " <th>idx</th>\n",
78
- " <th>state</th>\n",
79
- " <th>question</th>\n",
80
- " <th>answer</th>\n",
81
- " <th>question_group</th>\n",
82
- " <th>statutes</th>\n",
83
- " <th>original_question</th>\n",
84
- " <th>caveats</th>\n",
85
- " </tr>\n",
86
- " </thead>\n",
87
- " <tbody>\n",
88
- " <tr>\n",
89
- " <th>0</th>\n",
90
- " <td>0</td>\n",
91
- " <td>Alabama</td>\n",
92
- " <td>Is there a state/territory law regulating resi...</td>\n",
93
- " <td>Yes</td>\n",
94
- " <td>69</td>\n",
95
- " <td>{'statute_idx': [431263], 'citation': ['ALA. C...</td>\n",
96
- " <td>Is there a state/territory law regulating resi...</td>\n",
97
- " <td>[]</td>\n",
98
- " </tr>\n",
99
- " <tr>\n",
100
- " <th>1</th>\n",
101
- " <td>163</td>\n",
102
- " <td>Alabama</td>\n",
103
- " <td>Does the law specify a minimum number of days ...</td>\n",
104
- " <td>Yes</td>\n",
105
- " <td>23</td>\n",
106
- " <td>{'statute_idx': [431277], 'citation': ['ALA. C...</td>\n",
107
- " <td>Does the law specify a minimum number of days ...</td>\n",
108
- " <td>[]</td>\n",
109
- " </tr>\n",
110
- " <tr>\n",
111
- " <th>2</th>\n",
112
- " <td>237</td>\n",
113
- " <td>Alabama</td>\n",
114
- " <td>Does the law specify rebuttals available to te...</td>\n",
115
- " <td>Yes</td>\n",
116
- " <td>116</td>\n",
117
- " <td>{'statute_idx': [417060, 431274, 431280, 43127...</td>\n",
118
- " <td>Does the law specify rebuttals available to a ...</td>\n",
119
- " <td>[]</td>\n",
120
- " </tr>\n",
121
- " <tr>\n",
122
- " <th>3</th>\n",
123
- " <td>286</td>\n",
124
- " <td>Alabama</td>\n",
125
- " <td>In eviction proceedings, does the filing of an...</td>\n",
126
- " <td>Yes</td>\n",
127
- " <td>4</td>\n",
128
- " <td>{'statute_idx': [431286], 'citation': ['ALA. C...</td>\n",
129
- " <td>Does the filing of an appeal stay the executio...</td>\n",
130
- " <td>[]</td>\n",
131
- " </tr>\n",
132
- " <tr>\n",
133
- " <th>4</th>\n",
134
- " <td>353</td>\n",
135
- " <td>Alabama</td>\n",
136
- " <td>Is it specified whether a landlord waives thei...</td>\n",
137
- " <td>Yes</td>\n",
138
- " <td>201</td>\n",
139
- " <td>{'statute_idx': [431280], 'citation': ['ALA. C...</td>\n",
140
- " <td>Does a landlord waive their right to evict for...</td>\n",
141
- " <td>[A landlord waives their right to evict by acc...</td>\n",
142
- " </tr>\n",
143
- " </tbody>\n",
144
- "</table>\n",
145
- "</div>"
146
- ],
147
- "text/plain": [
148
- " idx state question answer \\\n",
149
- "0 0 Alabama Is there a state/territory law regulating resi... Yes \n",
150
- "1 163 Alabama Does the law specify a minimum number of days ... Yes \n",
151
- "2 237 Alabama Does the law specify rebuttals available to te... Yes \n",
152
- "3 286 Alabama In eviction proceedings, does the filing of an... Yes \n",
153
- "4 353 Alabama Is it specified whether a landlord waives thei... Yes \n",
154
- "\n",
155
- " question_group statutes \\\n",
156
- "0 69 {'statute_idx': [431263], 'citation': ['ALA. C... \n",
157
- "1 23 {'statute_idx': [431277], 'citation': ['ALA. C... \n",
158
- "2 116 {'statute_idx': [417060, 431274, 431280, 43127... \n",
159
- "3 4 {'statute_idx': [431286], 'citation': ['ALA. C... \n",
160
- "4 201 {'statute_idx': [431280], 'citation': ['ALA. C... \n",
161
- "\n",
162
- " original_question \\\n",
163
- "0 Is there a state/territory law regulating resi... \n",
164
- "1 Does the law specify a minimum number of days ... \n",
165
- "2 Does the law specify rebuttals available to a ... \n",
166
- "3 Does the filing of an appeal stay the executio... \n",
167
- "4 Does a landlord waive their right to evict for... \n",
168
- "\n",
169
- " caveats \n",
170
- "0 [] \n",
171
- "1 [] \n",
172
- "2 [] \n",
173
- "3 [] \n",
174
- "4 [A landlord waives their right to evict by acc... "
175
- ]
176
- },
177
- "execution_count": 28,
178
- "metadata": {},
179
- "output_type": "execute_result"
180
- }
181
- ],
182
- "source": [
183
- "questions = load_dataset(\"reglab/housing_qa\", \"questions\", split=\"test\", download_mode=\"force_redownload\")\n",
184
- "questions.to_pandas().head(5)"
185
- ]
186
- },
187
- {
188
- "cell_type": "code",
189
- "execution_count": 30,
190
- "id": "3931e731-006f-4731-8350-a7f83ea3f298",
191
- "metadata": {},
192
- "outputs": [
193
- {
194
- "data": {
195
- "text/plain": [
196
- "{'idx': 237,\n",
197
- " 'state': 'Alabama',\n",
198
- " 'question': 'Does the law specify rebuttals available to tenants subject to eviction proceedings?',\n",
199
- " 'answer': 'Yes',\n",
200
- " 'question_group': 116,\n",
201
- " 'statutes': {'statute_idx': [417060, 431274, 431280, 431273, 431271],\n",
202
- " 'citation': ['ALA. CODE § 35-9A-501(B)',\n",
203
- " 'ALA. CODE § 35-9A-405(A)',\n",
204
- " 'ALA. CODE § 35-9A-424',\n",
205
- " 'ALA. CODE § 35-9A-404(B)',\n",
206
- " 'ALA. CODE § 35-9A-401(A)'],\n",
207
- " 'excerpt': ['(b) If a landlord acts in violation of subsection (a), the tenant is entitled to the remedies provided in Section 35-9A-407 and has a defense in any retaliatory action against the tenant for possession.',\n",
208
- " \"(a) In an action for possession or in an action for rent when the tenant is in possession, the tenant may counterclaim for any amount the tenant may recover under the rental agreement or this chapter. It is in the court's discretion whether the tenant is to remain in possession. The tenant shall pay into court rent accrued and thereafter accruing as it comes due. The court shall determine the amount due to each party. The party to whom a net amount is owed shall be paid first from the money paid into court, and the balance by the other party. If no rent remains due after application of this section, judgment shall be entered for the tenant in the action for possession. If the defense or counterclaim by the tenant is without merit and is not raised in good faith, the landlord may recover reasonable attorney's fees.\",\n",
209
- " \"Acceptance of rent with knowledge of a default by the tenant or acceptance of performance by the tenant that varies from the terms of the rental agreement constitutes a waiver of the landlord's right to terminate the rental agreement for that breach, unless otherwise agreed after the breach has occurred.\",\n",
210
- " '(b) If contrary to the rental agreement or Section 35-9A-204, after receiving notice of the breach from the tenant, the landlord willfully or negligently fails to promptly make available heat, running water, hot water, electric, gas, or other essential service, the tenant may:(1) send a written notice specifying the date of termination not less than 14 days after receipt of notice and upon vacation of the premises, the rental agreement shall be rightfully terminated without further obligation or penalty. If the rental agreement is terminated pursuant to this section, the landlord shall return all security recoverable by the tenant under Section 35-9A-201 and all unearned prepaid rent; or(2) recover damages based upon the diminution in the fair rental value of the dwelling unit.',\n",
211
- " '(a) Except as provided in this chapter, if there is a material noncompliance by the landlord with the rental agreement or a noncompliance with Section 35-9A-204 materially affecting health and safety, the tenant may deliver a written notice to the landlord specifying the acts and omissions constituting the breach and that the rental agreement will terminate upon a date not less than 14 days after receipt of the notice if the breach is not remedied within that period, and the rental agreement shall terminate as provided in the notice subject to the following:']},\n",
212
- " 'original_question': 'Does the law specify rebuttals available to a tenant?',\n",
213
- " 'caveats': ['']}"
214
- ]
215
- },
216
- "execution_count": 30,
217
- "metadata": {},
218
- "output_type": "execute_result"
219
- }
220
- ],
221
- "source": [
222
- "for q in questions:\n",
223
- " if len(q[\"statutes\"][\"citation\"]) > 1:\n",
224
- " break \n",
225
- "q"
226
- ]
227
- },
228
- {
229
- "cell_type": "markdown",
230
- "id": "c30a72f9-0ebe-4d33-abbd-e53883d04be5",
231
- "metadata": {},
232
- "source": [
233
- "# RC Questions"
234
- ]
235
- },
236
- {
237
- "cell_type": "code",
238
- "execution_count": 8,
239
- "id": "92c9606a-09a5-44c6-94f2-4c9773c1a754",
240
- "metadata": {},
241
- "outputs": [
242
- {
243
- "name": "stderr",
244
- "output_type": "stream",
245
- "text": [
246
- "Downloading data: 100%|████████████████████████████████████████████████████| 987k/987k [00:00<00:00, 10.7MB/s]\n",
247
- "Generating test split: 6853 examples [00:00, 25871.49 examples/s]\n"
248
- ]
249
- },
250
- {
251
- "data": {
252
- "text/html": [
253
- "<div>\n",
254
- "<style scoped>\n",
255
- " .dataframe tbody tr th:only-of-type {\n",
256
- " vertical-align: middle;\n",
257
- " }\n",
258
- "\n",
259
- " .dataframe tbody tr th {\n",
260
- " vertical-align: top;\n",
261
- " }\n",
262
- "\n",
263
- " .dataframe thead th {\n",
264
- " text-align: right;\n",
265
- " }\n",
266
- "</style>\n",
267
- "<table border=\"1\" class=\"dataframe\">\n",
268
- " <thead>\n",
269
- " <tr style=\"text-align: right;\">\n",
270
- " <th></th>\n",
271
- " <th>idx</th>\n",
272
- " <th>state</th>\n",
273
- " <th>question</th>\n",
274
- " <th>answer</th>\n",
275
- " <th>question_group</th>\n",
276
- " <th>statutes</th>\n",
277
- " <th>original_question</th>\n",
278
- " <th>caveats</th>\n",
279
- " </tr>\n",
280
- " </thead>\n",
281
- " <tbody>\n",
282
- " <tr>\n",
283
- " <th>0</th>\n",
284
- " <td>0</td>\n",
285
- " <td>Alabama</td>\n",
286
- " <td>Is there a state/territory law regulating resi...</td>\n",
287
- " <td>Yes</td>\n",
288
- " <td>69</td>\n",
289
- " <td>{'statute_idx': [431263], 'citation': ['ALA. C...</td>\n",
290
- " <td>Is there a state/territory law regulating resi...</td>\n",
291
- " <td>[[]]</td>\n",
292
- " </tr>\n",
293
- " <tr>\n",
294
- " <th>1</th>\n",
295
- " <td>163</td>\n",
296
- " <td>Alabama</td>\n",
297
- " <td>Does the law specify a minimum number of days ...</td>\n",
298
- " <td>Yes</td>\n",
299
- " <td>23</td>\n",
300
- " <td>{'statute_idx': [431277], 'citation': ['ALA. C...</td>\n",
301
- " <td>Does the law specify a minimum number of days ...</td>\n",
302
- " <td>[[]]</td>\n",
303
- " </tr>\n",
304
- " <tr>\n",
305
- " <th>2</th>\n",
306
- " <td>237</td>\n",
307
- " <td>Alabama</td>\n",
308
- " <td>Does the law specify rebuttals available to te...</td>\n",
309
- " <td>Yes</td>\n",
310
- " <td>116</td>\n",
311
- " <td>{'statute_idx': [417060, 431274, 431280, 43127...</td>\n",
312
- " <td>Does the law specify rebuttals available to a ...</td>\n",
313
- " <td>[[]]</td>\n",
314
- " </tr>\n",
315
- " <tr>\n",
316
- " <th>3</th>\n",
317
- " <td>286</td>\n",
318
- " <td>Alabama</td>\n",
319
- " <td>In eviction proceedings, does the filing of an...</td>\n",
320
- " <td>Yes</td>\n",
321
- " <td>4</td>\n",
322
- " <td>{'statute_idx': [431286], 'citation': ['ALA. C...</td>\n",
323
- " <td>Does the filing of an appeal stay the executio...</td>\n",
324
- " <td>[[]]</td>\n",
325
- " </tr>\n",
326
- " <tr>\n",
327
- " <th>4</th>\n",
328
- " <td>353</td>\n",
329
- " <td>Alabama</td>\n",
330
- " <td>Is it specified whether a landlord waives thei...</td>\n",
331
- " <td>Yes</td>\n",
332
- " <td>201</td>\n",
333
- " <td>{'statute_idx': [431280], 'citation': ['ALA. C...</td>\n",
334
- " <td>Does a landlord waive their right to evict for...</td>\n",
335
- " <td>[[A, , l, a, n, d, l, o, r, d, , w, a, i, v,...</td>\n",
336
- " </tr>\n",
337
- " </tbody>\n",
338
- "</table>\n",
339
- "</div>"
340
- ],
341
- "text/plain": [
342
- " idx state question answer \\\n",
343
- "0 0 Alabama Is there a state/territory law regulating resi... Yes \n",
344
- "1 163 Alabama Does the law specify a minimum number of days ... Yes \n",
345
- "2 237 Alabama Does the law specify rebuttals available to te... Yes \n",
346
- "3 286 Alabama In eviction proceedings, does the filing of an... Yes \n",
347
- "4 353 Alabama Is it specified whether a landlord waives thei... Yes \n",
348
- "\n",
349
- " question_group statutes \\\n",
350
- "0 69 {'statute_idx': [431263], 'citation': ['ALA. C... \n",
351
- "1 23 {'statute_idx': [431277], 'citation': ['ALA. C... \n",
352
- "2 116 {'statute_idx': [417060, 431274, 431280, 43127... \n",
353
- "3 4 {'statute_idx': [431286], 'citation': ['ALA. C... \n",
354
- "4 201 {'statute_idx': [431280], 'citation': ['ALA. C... \n",
355
- "\n",
356
- " original_question \\\n",
357
- "0 Is there a state/territory law regulating resi... \n",
358
- "1 Does the law specify a minimum number of days ... \n",
359
- "2 Does the law specify rebuttals available to a ... \n",
360
- "3 Does the filing of an appeal stay the executio... \n",
361
- "4 Does a landlord waive their right to evict for... \n",
362
- "\n",
363
- " caveats \n",
364
- "0 [[]] \n",
365
- "1 [[]] \n",
366
- "2 [[]] \n",
367
- "3 [[]] \n",
368
- "4 [[A, , l, a, n, d, l, o, r, d, , w, a, i, v,... "
369
- ]
370
- },
371
- "execution_count": 8,
372
- "metadata": {},
373
- "output_type": "execute_result"
374
- }
375
- ],
376
- "source": [
377
- "questions = load_dataset(\"reglab/housing_qa\", \"rc_questions\")\n",
378
- "questions[\"test\"].to_pandas().head(5)"
379
- ]
380
- },
381
- {
382
- "cell_type": "markdown",
383
- "id": "692490c0-eaa3-4f88-9b25-630f6ce736a3",
384
- "metadata": {},
385
- "source": [
386
- "# Statutes"
387
- ]
388
- },
389
- {
390
- "cell_type": "code",
391
- "execution_count": 12,
392
- "id": "b4ce7ae9-618f-4594-be69-b53a58e580e4",
393
- "metadata": {},
394
- "outputs": [
395
- {
396
- "data": {
397
- "text/html": [
398
- "<div>\n",
399
- "<style scoped>\n",
400
- " .dataframe tbody tr th:only-of-type {\n",
401
- " vertical-align: middle;\n",
402
- " }\n",
403
- "\n",
404
- " .dataframe tbody tr th {\n",
405
- " vertical-align: top;\n",
406
- " }\n",
407
- "\n",
408
- " .dataframe thead th {\n",
409
- " text-align: right;\n",
410
- " }\n",
411
- "</style>\n",
412
- "<table border=\"1\" class=\"dataframe\">\n",
413
- " <thead>\n",
414
- " <tr style=\"text-align: right;\">\n",
415
- " <th></th>\n",
416
- " <th>citation</th>\n",
417
- " <th>path</th>\n",
418
- " <th>state</th>\n",
419
- " <th>text</th>\n",
420
- " <th>idx</th>\n",
421
- " </tr>\n",
422
- " </thead>\n",
423
- " <tbody>\n",
424
- " <tr>\n",
425
- " <th>0</th>\n",
426
- " <td>MO Rev Stat § 1.010 (2021)</td>\n",
427
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
428
- " <td>missouri</td>\n",
429
- " <td>Effective - 28 Aug 2015 1.010. Common law in...</td>\n",
430
- " <td>0</td>\n",
431
- " </tr>\n",
432
- " <tr>\n",
433
- " <th>1</th>\n",
434
- " <td>MO Rev Stat § 1.020 (2021)</td>\n",
435
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
436
- " <td>missouri</td>\n",
437
- " <td>Effective - 28 Aug 2009 1.020. Definitions. ...</td>\n",
438
- " <td>1</td>\n",
439
- " </tr>\n",
440
- " <tr>\n",
441
- " <th>2</th>\n",
442
- " <td>MO Rev Stat § 1.025 (2021)</td>\n",
443
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
444
- " <td>missouri</td>\n",
445
- " <td>Effective - 28 Aug 1958 1.025. Registered ma...</td>\n",
446
- " <td>2</td>\n",
447
- " </tr>\n",
448
- " <tr>\n",
449
- " <th>3</th>\n",
450
- " <td>MO Rev Stat § 1.028 (2021)</td>\n",
451
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
452
- " <td>missouri</td>\n",
453
- " <td>Effective - 28 Aug 1999 1.028. English is th...</td>\n",
454
- " <td>3</td>\n",
455
- " </tr>\n",
456
- " <tr>\n",
457
- " <th>4</th>\n",
458
- " <td>MO Rev Stat § 1.030 (2021)</td>\n",
459
- " <td>2021 Missouri Revised Statutes|Title I - Laws ...</td>\n",
460
- " <td>missouri</td>\n",
461
- " <td>Effective - 28 Aug 1957 1.030. Plural includ...</td>\n",
462
- " <td>4</td>\n",
463
- " </tr>\n",
464
- " </tbody>\n",
465
- "</table>\n",
466
- "</div>"
467
- ],
468
- "text/plain": [
469
- " citation \\\n",
470
- "0 MO Rev Stat § 1.010 (2021) \n",
471
- "1 MO Rev Stat § 1.020 (2021) \n",
472
- "2 MO Rev Stat § 1.025 (2021) \n",
473
- "3 MO Rev Stat § 1.028 (2021) \n",
474
- "4 MO Rev Stat § 1.030 (2021) \n",
475
- "\n",
476
- " path state \\\n",
477
- "0 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
478
- "1 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
479
- "2 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
480
- "3 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
481
- "4 2021 Missouri Revised Statutes|Title I - Laws ... missouri \n",
482
- "\n",
483
- " text idx \n",
484
- "0 Effective - 28 Aug 2015 1.010. Common law in... 0 \n",
485
- "1 Effective - 28 Aug 2009 1.020. Definitions. ... 1 \n",
486
- "2 Effective - 28 Aug 1958 1.025. Registered ma... 2 \n",
487
- "3 Effective - 28 Aug 1999 1.028. English is th... 3 \n",
488
- "4 Effective - 28 Aug 1957 1.030. Plural includ... 4 "
489
- ]
490
- },
491
- "execution_count": 12,
492
- "metadata": {},
493
- "output_type": "execute_result"
494
- }
495
- ],
496
- "source": [
497
- "statutes = load_dataset(\"reglab/housing_qa\", \"statutes\")\n",
498
- "statutes[\"corpus\"].to_pandas().head(5)"
499
- ]
500
- }
501
- ],
502
- "metadata": {
503
- "kernelspec": {
504
- "display_name": "Python 3 (ipykernel)",
505
- "language": "python",
506
- "name": "python3"
507
- },
508
- "language_info": {
509
- "codemirror_mode": {
510
- "name": "ipython",
511
- "version": 3
512
- },
513
- "file_extension": ".py",
514
- "mimetype": "text/x-python",
515
- "name": "python",
516
- "nbconvert_exporter": "python",
517
- "pygments_lexer": "ipython3",
518
- "version": "3.8.18"
519
- }
520
- },
521
- "nbformat": 4,
522
- "nbformat_minor": 5
523
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
housing_qa.py DELETED
@@ -1,118 +0,0 @@
1
- import csv
2
-
3
- import datasets
4
- from datasets import Dataset, DatasetInfo, Features, ClassLabel, Value, Sequence, DatasetDict
5
- import json
6
- from io import StringIO
7
- from pathlib import Path
8
- import pandas as pd
9
-
10
- _CITATION = """"""
11
- _DESCRIPTION = """"""
12
- _HOMEPAGE = ""
13
- _URLS = {
14
- "questions": "data/questions.json.zip",
15
- "questions_aux": "data/questions_aux.json.zip",
16
- "statutes": "data/statutes.tsv.zip",
17
- }
18
-
19
- _CONFIGS = {}
20
-
21
- _CONFIGS["questions"] = {
22
- "description": "Questions about housing law.",
23
- "features" : Features({
24
- 'idx': Value('int32'),
25
- 'state': Value('string'),
26
- 'question': Value('string'),
27
- 'answer': Value('string'),
28
- 'question_group': Value('int32'),
29
- 'statutes': [{
30
- 'statute_idx': Value('int32'),
31
- 'citation': Value('string'),
32
- 'excerpt': Value('string'),
33
- }],
34
- 'original_question': Value('string'),
35
- 'caveats': Sequence(Value('string')),
36
- }),
37
- "license": None,
38
- }
39
-
40
- _CONFIGS["questions_aux"] = {
41
- "description": "An auxilliary set of larger questions about housing law, without statutory annotations.",
42
- "features" : Features({
43
- 'idx': Value('int32'),
44
- 'state': Value('string'),
45
- 'question': Value('string'),
46
- 'answer': Value('string'),
47
- 'question_group': Value('int32'),
48
- 'statutes': Sequence({
49
- 'citation': Value('string'),
50
- 'excerpt': Value('string'),
51
- }),
52
- 'original_question': Value('string'),
53
- 'caveats': Sequence(Value('string')),
54
- }),
55
- "license": None,
56
- }
57
-
58
- _CONFIGS["statutes"] = {
59
- "description": "Corpus of statutes",
60
- "features": Features({
61
- "citation": datasets.Value("string"),
62
- "path": datasets.Value("string"),
63
- "state": datasets.Value("string"),
64
- "text": datasets.Value("string"),
65
- "idx": datasets.Value("int32"),
66
- }),
67
- "license": None,
68
- }
69
-
70
-
71
- class HousingQA(datasets.GeneratorBasedBuilder):
72
- """TODO"""
73
-
74
- BUILDER_CONFIGS = [
75
- datasets.BuilderConfig(
76
- name=task, version=datasets.Version("1.0.0"), description=task,
77
- )
78
- for task in _CONFIGS
79
- ]
80
-
81
- def _info(self):
82
- features = _CONFIGS[self.config.name]["features"]
83
- return datasets.DatasetInfo(
84
- description=_DESCRIPTION,
85
- features=features,
86
- homepage=_HOMEPAGE,
87
- citation=_CITATION,
88
- license=_CONFIGS[self.config.name]["license"],
89
- )
90
-
91
- def _split_generators(self, dl_manager):
92
- """Returns SplitGenerators."""
93
- downloaded_file_dir = Path(dl_manager.download_and_extract(_URLS[self.config.name]))
94
- return [
95
- datasets.SplitGenerator(
96
- name="corpus" if self.config.name == "statutes" else "test",
97
- gen_kwargs={
98
- "downloaded_file_dir": downloaded_file_dir,
99
- "name": self.config.name,
100
- },
101
- ),
102
- ]
103
-
104
- def _generate_examples(self, downloaded_file_dir, name):
105
- """Yields examples as (key, example) tuples."""
106
-
107
- if name in ["questions", "questions_aux"]:
108
- fpath = downloaded_file_dir / f"{name}.json"
109
- data = json.loads(fpath.read_text())
110
- for id_line, data in enumerate(data):
111
- yield id_line, data
112
-
113
- if name in ["statutes"]:
114
- fpath = downloaded_file_dir / f"{name}.tsv"
115
- data = pd.read_csv(fpath, sep="\t", dtype={'index': 'int32'})
116
- data = data.to_dict(orient="records")
117
- for id_line, data in enumerate(data):
118
- yield id_line, data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/questions.json.zip → questions/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e7722c267d44ecc1f9f52d69109116d8a0a352b89f002438585872f67de9985
3
- size 986847
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05b9502e3f4fc65de6920b2efdec5698382212afd20b62ba3ba0833fa5a5ae1a
3
+ size 764083
data/questions_aux.json.zip → questions_aux/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fa4361b1802cbece95210561a8bb97bcbada497a919075ae666a04ac642156dd
3
- size 1297687
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c8b6156cd8d44b4e7bfb0239a3d8f3a7a8968d666263375b586554266c32341
3
+ size 1230753
statistics.ipynb DELETED
@@ -1,117 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 26,
6
- "id": "2c24819e-0019-4c60-9284-77bfa565ecc5",
7
- "metadata": {},
8
- "outputs": [],
9
- "source": [
10
- "from datasets import Dataset, DatasetInfo, Features, ClassLabel, Value, Sequence, DatasetDict\n",
11
- "\n",
12
- "# Define the dataset's schema\n",
13
- "features = Features({\n",
14
- " 'idx': Value('int32'),\n",
15
- " 'state': Value('string'),\n",
16
- " 'question': Value('string'),\n",
17
- " 'answer': Value('string'),\n",
18
- " 'question_group': Value('int32'),\n",
19
- " 'statutes': Sequence({\n",
20
- " 'statute_idx': Value('int32'),\n",
21
- " 'citation': Value('string'),\n",
22
- " 'excerpt': Value('string'),\n",
23
- " }),\n",
24
- " 'original_question': Value('string'),\n",
25
- " 'caveats': Sequence(Value('string')),\n",
26
- "})\n",
27
- "\n",
28
- "# Create a DatasetInfo object for additional metadata\n",
29
- "dataset_info = DatasetInfo(\n",
30
- " description=\"A dataset containing information on state/territory laws regulating residential evictions, including relevant legal statutes.\",\n",
31
- " features=features,\n",
32
- " supervised_keys=None, # No supervised keys as this dataset doesn't include labels for training models\n",
33
- " homepage=\"http://example.com\", # Add a real homepage if applicable\n",
34
- " citation=\"Citation information for the dataset\",\n",
35
- ")\n",
36
- "\n",
37
- "# Load dataset from your data source\n",
38
- "# Assuming your data is in JSON or other format, use appropriate loading function\n",
39
- "dataset = DatasetDict({\n",
40
- " 'train': Dataset.from_dict({\n",
41
- " 'idx': [0],\n",
42
- " 'state': ['Alabama'],\n",
43
- " 'question': ['Is there a state/territory law regulating residential evictions?'],\n",
44
- " 'answer': ['Yes'],\n",
45
- " 'question_group': [69],\n",
46
- " 'statutes': [[{\n",
47
- " 'statute_idx': 431263,\n",
48
- " 'citation': 'ALA. CODE \\u00a7 35-9A-141(11)',\n",
49
- " 'excerpt': '(11) “premises” means a dwelling unit and the structure of which it is a part and facilities and appurtenances therein and grounds, areas, and facilities held out for the use of tenants generally or whose use is promised by the rental agreement to the tenant;',\n",
50
- " }]],\n",
51
- " 'original_question': ['Is there a state/territory law regulating residential evictions?'],\n",
52
- " 'caveats': [['']],\n",
53
- " })\n",
54
- "})"
55
- ]
56
- },
57
- {
58
- "cell_type": "code",
59
- "execution_count": 29,
60
- "id": "893dbd5a-e351-43a9-b939-ed022a78b78a",
61
- "metadata": {},
62
- "outputs": [
63
- {
64
- "data": {
65
- "text/plain": [
66
- "{'idx': 0,\n",
67
- " 'state': 'Alabama',\n",
68
- " 'question': 'Is there a state/territory law regulating residential evictions?',\n",
69
- " 'answer': 'Yes',\n",
70
- " 'question_group': 69,\n",
71
- " 'statutes': [{'citation': 'ALA. CODE § 35-9A-141(11)',\n",
72
- " 'excerpt': '(11) “premises” means a dwelling unit and the structure of which it is a part and facilities and appurtenances therein and grounds, areas, and facilities held out for the use of tenants generally or whose use is promised by the rental agreement to the tenant;',\n",
73
- " 'statute_idx': 431263}],\n",
74
- " 'original_question': 'Is there a state/territory law regulating residential evictions?',\n",
75
- " 'caveats': ['']}"
76
- ]
77
- },
78
- "execution_count": 29,
79
- "metadata": {},
80
- "output_type": "execute_result"
81
- }
82
- ],
83
- "source": [
84
- "dataset[\"train\"][0]"
85
- ]
86
- },
87
- {
88
- "cell_type": "code",
89
- "execution_count": null,
90
- "id": "98fc7ef8-24e8-4e02-ba9f-215330fca3c6",
91
- "metadata": {},
92
- "outputs": [],
93
- "source": []
94
- }
95
- ],
96
- "metadata": {
97
- "kernelspec": {
98
- "display_name": "Python 3 (ipykernel)",
99
- "language": "python",
100
- "name": "python3"
101
- },
102
- "language_info": {
103
- "codemirror_mode": {
104
- "name": "ipython",
105
- "version": 3
106
- },
107
- "file_extension": ".py",
108
- "mimetype": "text/x-python",
109
- "name": "python",
110
- "nbconvert_exporter": "python",
111
- "pygments_lexer": "ipython3",
112
- "version": "3.8.18"
113
- }
114
- },
115
- "nbformat": 4,
116
- "nbformat_minor": 5
117
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/statutes.tsv.zip → statutes/corpus-00000-of-00007.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7d4382875edc40b54de5889a21d7ddebe6fae5629fd54bfa53b3d82c20eb04ae
3
- size 731952596
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:591f681ec167fe7229529cdf9f130c65f3ca0570be67c46db198d3dce31df3e9
3
+ size 208515668
data/statutes.tsv → statutes/corpus-00001-of-00007.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d974d2878a059dcaa41584a967ccc608bd6efaf91d78253100de7a187c06ac3a
3
- size 3357422356
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ec197d4973d8f9a08bae6710e6205ae8ad19c658903256144cefe2e56771dd
3
+ size 211419286
statutes/corpus-00002-of-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b42091cce524258cbf2c57e7f77a2dca027ed4f3bb0266aa28f658f9792f87f5
3
+ size 163570426
statutes/corpus-00003-of-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16313c858a7cc02243e53115df0cb53be2106def4eb73e5006ebbc88d30ea2b7
3
+ size 183625185
statutes/corpus-00004-of-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f9e69724c73051f2539d6e7fb70b66776f9754c9c13ca99cc5114516cb52e1c
3
+ size 186013537
statutes/corpus-00005-of-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a46a94221631301ba89ce450c20cca5835955d834de1c0611f543dd0ce88502b
3
+ size 163578910
statutes/corpus-00006-of-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8af63ecda105c5b7d1f47e799fee556b8256baf400cf2726f03d0c9825c5d13c
3
+ size 152091194