macadeliccc commited on
Commit
b6a5a5f
·
verified ·
1 Parent(s): 6cc5a22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -11
README.md CHANGED
@@ -4,8 +4,8 @@ configs:
4
  - config_name: all
5
  data_files:
6
  - split: train
7
- path: "all_us_federal_laws.jsonl"
8
- - config_name: congress
9
  data_files:
10
  - split: train
11
  path: "congress_public_laws.json"
@@ -22,25 +22,28 @@ license: apache-2.0
22
  ---
23
  # US Federal Laws
24
 
25
- 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.
26
 
27
  ## Taxonomy
28
 
29
- + The congress split contains the laws voted from the 88th congress through the 118th Congress.
30
  + The house_of_reps split contains all of the current versions of US Code as documented in Public Law 118-70
 
 
 
 
 
 
 
31
 
32
  ## Loading Script
33
 
34
  ```python
35
  import datasets
36
 
37
- congress = datasets.load_dataset('macadeliccc/US-FederalLaws', 'congress', split='train')
38
- house_of_reps_dataset = datasets.load_dataset('macadeliccc/US-FederalLaws', 'house_of_reps', split='train')
39
-
40
- iterable_congress = congress.to_iterable_dataset()
41
- iterable_house_of_reps = house_of_reps_dataset.to_iterable_dataset()
42
 
43
- print(next(iter(iterable_congress)))
44
- print(next(iter(iterable_house_of_reps)))
45
  ```
46
 
 
4
  - config_name: all
5
  data_files:
6
  - split: train
7
+ path: "us-laws"
8
+ - config_name: senate
9
  data_files:
10
  - split: train
11
  path: "congress_public_laws.json"
 
22
  ---
23
  # US Federal Laws
24
 
25
+ This dataset consists of US Federal laws that are voted in by either Senate, the House of Representatives or Executive Order
26
 
27
  ## Taxonomy
28
 
29
+ + The senate split contains the laws voted from the 88th congress through the 118th Congress.
30
  + The house_of_reps split contains all of the current versions of US Code as documented in Public Law 118-70
31
+ + The executive_orders split contains all of the executive order documents starting in 2005 (Before 2005 the federal government does not have digital records of executive orders)
32
+
33
+ ## Sources
34
+
35
+ + [Congress](https://www.congress.gov)
36
+ + [US House of Representatives](https://uscode.house.gov/)
37
+ + [Federal Register](https://www.federalregister.gov/presidential-documents/executive-orders)
38
 
39
  ## Loading Script
40
 
41
  ```python
42
  import datasets
43
 
44
+ ds = datasets.load_dataset('macadeliccc/US-FederalLaws', 'all', split='train')
45
+ iter_ds = ds.to_iterable_dataset()
 
 
 
46
 
47
+ print(next(iter(iter_ds)))
 
48
  ```
49