File size: 1,413 Bytes
4df26ff
d254cfd
72f2dcb
331b866
72f2dcb
7919ec9
65ef14e
 
 
 
 
3aaf1da
 
7919ec9
65ef14e
bfecb68
 
 
 
72f2dcb
4df26ff
 
3aaf1da
 
9d675d6
3aaf1da
 
 
 
 
 
 
 
7f222f8
 
3aaf1da
7f222f8
 
 
 
 
 
 
 
 
3aaf1da
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
---
dataset_info:
configs:
- config_name: all
  data_files:
  - split: train
    path: "all_us_federal_laws.jsonl"
- config_name: congress
  data_files:
  - split: train
    path: "congress_public_laws.json"
- config_name: house_of_reps
  data_files: 
  - split: train
    path: "us_public_law_118_70.jsonl"
- config_name: executive_orders
  data_files: 
  - split: train
    path: "exec_orders_hf.json"
    
license: apache-2.0
---
# US Federal Laws

This dataset consists of US Federal laws that are voted in by either Congress or the House of Representatives. The laws are structured differently for each subset, so the 'all' subset has null values for many elements. Still working on a way to restructure these in a way that makes sense. 

## Taxonomy

+ The congress split contains the laws voted from the 88th congress through the 118th Congress.
+ The house_of_reps split contains all of the current versions of US Code as documented in Public Law 118-70

## Loading Script

```python
import datasets

congress = datasets.load_dataset('macadeliccc/US-FederalLaws', 'congress', split='train')
house_of_reps_dataset = datasets.load_dataset('macadeliccc/US-FederalLaws', 'house_of_reps', split='train')

iterable_congress = congress.to_iterable_dataset()
iterable_house_of_reps = house_of_reps_dataset.to_iterable_dataset()

print(next(iter(iterable_congress)))
print(next(iter(iterable_house_of_reps)))
```