Datasets:
gabrielaltay
commited on
Commit
•
00a2781
1
Parent(s):
a85800b
Upload folder using huggingface_hub
Browse files- README.md +97 -0
- data/usc-113-unified.parquet +3 -0
- data/usc-114-unified.parquet +3 -0
- data/usc-115-unified.parquet +3 -0
- data/usc-116-unified.parquet +3 -0
- data/usc-117-unified.parquet +3 -0
- data/usc-118-unified.parquet +3 -0
README.md
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
configs:
|
3 |
+
- config_name: default
|
4 |
+
data_files:
|
5 |
+
- split: '113'
|
6 |
+
path: data/usc-113-unified.parquet
|
7 |
+
- split: '114'
|
8 |
+
path: data/usc-114-unified.parquet
|
9 |
+
- split: '115'
|
10 |
+
path: data/usc-115-unified.parquet
|
11 |
+
- split: '116'
|
12 |
+
path: data/usc-116-unified.parquet
|
13 |
+
- split: '117'
|
14 |
+
path: data/usc-117-unified.parquet
|
15 |
+
- split: '118'
|
16 |
+
path: data/usc-118-unified.parquet
|
17 |
+
license: mit
|
18 |
+
language:
|
19 |
+
- en
|
20 |
+
---
|
21 |
+
|
22 |
+
# Dataset Description
|
23 |
+
|
24 |
+
This dataset is part of a family of datasets that provide convenient access to
|
25 |
+
congressional data from the US [Government Publishing Office](https://www.gpo.gov/)
|
26 |
+
via the [GovInfo Bulk Data Repository](https://www.govinfo.gov/developers).
|
27 |
+
GovInfo provides bulk data in xml format.
|
28 |
+
The raw xml files were downloaded using the
|
29 |
+
[congress](https://github.com/unitedstates/congress) repo.
|
30 |
+
Further processing was done using the
|
31 |
+
legisplain [legisplain](https://github.com/galtay/legisplain) repo.
|
32 |
+
|
33 |
+
# Hyperdemocracy Datasets
|
34 |
+
|
35 |
+
* [usc-billstatus](https://huggingface.co/datasets/hyperdemocracy/usc-billstatus) (metadata on each bill)
|
36 |
+
* [usc-textversion](https://huggingface.co/datasets/hyperdemocracy/usc-textversion) (different text versions of bills in xml)
|
37 |
+
* [usc-unified](https://huggingface.co/datasets/hyperdemocracy/usc-unified) (combined metadata and text version xml)
|
38 |
+
|
39 |
+
# UNIFIED (metadata + text for congresses 113-118)
|
40 |
+
|
41 |
+
## bill status
|
42 |
+
|
43 |
+
* https://www.govinfo.gov/bulkdata/BILLSTATUS
|
44 |
+
* https://github.com/usgpo/bill-status/blob/main/BILLSTATUS-XML_User_User-Guide.md
|
45 |
+
* https://github.com/usgpo/bulk-data/blob/main/Bills-XML-User-Guide.md
|
46 |
+
|
47 |
+
## text versions
|
48 |
+
|
49 |
+
* https://www.govinfo.gov/bulkdata/BILLS
|
50 |
+
* https://xml.house.gov/
|
51 |
+
* https://github.com/usgpo/bill-dtd?tab=readme-ov-file
|
52 |
+
|
53 |
+
|
54 |
+
# Column Descriptions
|
55 |
+
|
56 |
+
| Column | Description |
|
57 |
+
|--------|-------------|
|
58 |
+
| legis_id | a unique ID for each bill (`{congress_num}-{legis_type}-{legis_num}`) |
|
59 |
+
| congress_num | the congress number for the bill |
|
60 |
+
| legis_type | one of [`hr`, `hres`, `hconres`, `hjres`, `s`, `sres`, `sconres`, `sjres`] (see [govinfo - types of legislation](https://www.govinfo.gov/help/bills)) |
|
61 |
+
| legis_num | bills in each congress and of each type get an incrementing number as part of their ID |
|
62 |
+
| bulk_path | XML file path during bulk download |
|
63 |
+
| lastmod | lastmod date during bulk download |
|
64 |
+
| bs_xml | contents of billstatus XML file |
|
65 |
+
| bs_json| billstatus XML parsed into JSON |
|
66 |
+
| tvs | every text version for this bill |
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
# Examples
|
71 |
+
|
72 |
+
The dataset is broken into splits (one split per congress number).
|
73 |
+
|
74 |
+
```python
|
75 |
+
from datasets import load_dataset
|
76 |
+
|
77 |
+
# load each split into a `DatasetDict` keyed on congress number
|
78 |
+
dsd = load_dataset(path="hyperdemocracy/usc-unified")
|
79 |
+
|
80 |
+
# load a single congress number into a `Dataset`
|
81 |
+
ds = load_dataset(path="hyperdemocracy/usc-unified", split=117)
|
82 |
+
|
83 |
+
# load all congress numbers into a single `Dataset`
|
84 |
+
ds = load_dataset(path="hyperdemocracy/usc-unified", split="all")
|
85 |
+
```
|
86 |
+
|
87 |
+
|
88 |
+
# Congress Number to Date Mapping
|
89 |
+
|
90 |
+
| Congress Number | Years | Metadata | Text |
|
91 |
+
|-----------------|-------|----------|------|
|
92 |
+
| 118 | 2023-2024 | True | True |
|
93 |
+
| 117 | 2021-2022 | True | True |
|
94 |
+
| 116 | 2019-2020 | True | True |
|
95 |
+
| 115 | 2017-2018 | True | True |
|
96 |
+
| 114 | 2015-2016 | True | True |
|
97 |
+
| 113 | 2013-2014 | True | True |
|
data/usc-113-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5868f1b6b6926c8c20c93ae0a836454e22f879a45ddf3a4957fc48e6f33f128
|
3 |
+
size 320172136
|
data/usc-114-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b4c5f17a2770ad213c8466cb049a8efa37c827912762bac642ee93402482da7a
|
3 |
+
size 353318965
|
data/usc-115-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9060ddfedf85de4b991bea39dc840681fed34501bd72098b2b51cf22297fc5b8
|
3 |
+
size 373772865
|
data/usc-116-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ead017e0d31ba6b0c4ac014a4cb64efe3abe0fd26fa73fc6f6e44081f979d17e
|
3 |
+
size 463207546
|
data/usc-117-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bac432015f60620c65766727e29900769b2b6ab0ad339e88f5de85e7e9d4e133
|
3 |
+
size 490556485
|
data/usc-118-unified.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e687a57013db61ec67a263616b80a56a7ad4409d4b20bf48aea5b7470708b73
|
3 |
+
size 284903290
|