Upload folder using huggingface_hub
Browse files- README.md +105 -0
- data/usc-108-billstatus.parquet +3 -0
- data/usc-109-billstatus.parquet +3 -0
- data/usc-110-billstatus.parquet +3 -0
- data/usc-111-billstatus.parquet +3 -0
- data/usc-112-billstatus.parquet +3 -0
- data/usc-113-billstatus.parquet +3 -0
- data/usc-114-billstatus.parquet +3 -0
- data/usc-115-billstatus.parquet +3 -0
- data/usc-116-billstatus.parquet +3 -0
- data/usc-117-billstatus.parquet +3 -0
- data/usc-118-billstatus.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
configs:
|
| 3 |
+
- config_name: default
|
| 4 |
+
data_files:
|
| 5 |
+
- split: '108'
|
| 6 |
+
path: data/usc-108-billstatus.parquet
|
| 7 |
+
- split: '109'
|
| 8 |
+
path: data/usc-109-billstatus.parquet
|
| 9 |
+
- split: '110'
|
| 10 |
+
path: data/usc-110-billstatus.parquet
|
| 11 |
+
- split: '111'
|
| 12 |
+
path: data/usc-111-billstatus.parquet
|
| 13 |
+
- split: '112'
|
| 14 |
+
path: data/usc-112-billstatus.parquet
|
| 15 |
+
- split: '113'
|
| 16 |
+
path: data/usc-113-billstatus.parquet
|
| 17 |
+
- split: '114'
|
| 18 |
+
path: data/usc-114-billstatus.parquet
|
| 19 |
+
- split: '115'
|
| 20 |
+
path: data/usc-115-billstatus.parquet
|
| 21 |
+
- split: '116'
|
| 22 |
+
path: data/usc-116-billstatus.parquet
|
| 23 |
+
- split: '117'
|
| 24 |
+
path: data/usc-117-billstatus.parquet
|
| 25 |
+
- split: '118'
|
| 26 |
+
path: data/usc-118-billstatus.parquet
|
| 27 |
+
license: mit
|
| 28 |
+
language:
|
| 29 |
+
- en
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# Dataset Description
|
| 33 |
+
|
| 34 |
+
This dataset is part of a family of datasets that provide convenient access to
|
| 35 |
+
congressional data from the US [Government Publishing Office](https://www.gpo.gov/)
|
| 36 |
+
via the [GovInfo Bulk Data Repository](https://www.govinfo.gov/developers).
|
| 37 |
+
GovInfo provides bulk data in xml format.
|
| 38 |
+
The raw xml files were downloaded using the
|
| 39 |
+
[congress](https://github.com/unitedstates/congress) repo.
|
| 40 |
+
Further processing was done using the
|
| 41 |
+
legisplain [legisplain](https://github.com/galtay/legisplain) repo.
|
| 42 |
+
|
| 43 |
+
# Hyperdemocracy Datasets
|
| 44 |
+
|
| 45 |
+
* [usc-billstatus](https://huggingface.co/datasets/hyperdemocracy/usc-billstatus) (metadata on each bill)
|
| 46 |
+
* [usc-textversion-xml](https://huggingface.co/datasets/hyperdemocracy/usc-textversion-xml) (different text versions of bills in xml)
|
| 47 |
+
* [usc-unified-xml](https://huggingface.co/datasets/hyperdemocracy/usc-unified-xml) (combined metadata and text version xml)
|
| 48 |
+
|
| 49 |
+
# BILLSTATUS (metadata for congresses 108-118)
|
| 50 |
+
|
| 51 |
+
* https://www.govinfo.gov/bulkdata/BILLSTATUS
|
| 52 |
+
* https://github.com/usgpo/bill-status/blob/main/BILLSTATUS-XML_User_User-Guide.md
|
| 53 |
+
* https://github.com/usgpo/bulk-data/blob/main/Bills-XML-User-Guide.md
|
| 54 |
+
|
| 55 |
+
These xml files contain metadata about each bill and
|
| 56 |
+
pointers to different xml files that contain various text versions of each bill.
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
# Column Descriptions
|
| 60 |
+
|
| 61 |
+
| Column | Description |
|
| 62 |
+
|--------|-------------|
|
| 63 |
+
| legis_id | a unique ID for each bill (`{congress_num}-{legis_type}-{legis_num}`) |
|
| 64 |
+
| congress_num | the congress number for the bill |
|
| 65 |
+
| legis_type | one of [`hr`, `hres`, `hconres`, `hjres`, `s`, `sres`, `sconres`, `sjres`] (see [govinfo - types of legislation](https://www.govinfo.gov/help/bills)) |
|
| 66 |
+
| legis_num | bills in each congress and of each type get an incrementing number as part of their ID |
|
| 67 |
+
| bulk_path | XML file path during bulk download |
|
| 68 |
+
| lastmod | lastmod date during bulk download |
|
| 69 |
+
| bs_xml | contents of billstatus XML file |
|
| 70 |
+
| bs_json| billstatus XML parsed into JSON |
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
# Examples
|
| 74 |
+
|
| 75 |
+
The dataset is broken into splits (one split per congress number).
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from datasets import load_dataset
|
| 79 |
+
|
| 80 |
+
# load each split into a `DatasetDict` keyed on congress number
|
| 81 |
+
dsd = load_dataset(path="hyperdemocracy/usc-billstatus")
|
| 82 |
+
|
| 83 |
+
# load a single congress number into a `Dataset`
|
| 84 |
+
ds = load_dataset(path="hyperdemocracy/usc-billstatus", split=117)
|
| 85 |
+
|
| 86 |
+
# load all congress numbers into a single `Dataset`
|
| 87 |
+
ds = load_dataset(path="hyperdemocracy/usc-billstatus", split="all")
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
# Congress Number to Date Mapping
|
| 92 |
+
|
| 93 |
+
| Congress Number | Years | Metadata | Text |
|
| 94 |
+
|-----------------|-------|----------|------|
|
| 95 |
+
| 118 | 2023-2024 | True | True |
|
| 96 |
+
| 117 | 2021-2022 | True | True |
|
| 97 |
+
| 116 | 2019-2020 | True | True |
|
| 98 |
+
| 115 | 2017-2018 | True | True |
|
| 99 |
+
| 114 | 2015-2016 | True | True |
|
| 100 |
+
| 113 | 2013-2014 | True | True |
|
| 101 |
+
| 112 | 2011-2012 | True | False |
|
| 102 |
+
| 111 | 2009-2010 | True | False |
|
| 103 |
+
| 110 | 2007-2008 | True | False |
|
| 104 |
+
| 109 | 2005-2006 | True | False |
|
| 105 |
+
| 108 | 2003-2004 | True | False |
|
data/usc-108-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8b6c889171b299b4493091b9b63044b26acb4dc33be924c9acac3c16de4aed1
|
| 3 |
+
size 78425662
|
data/usc-109-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a34be1dc980cea0208f234fda0c0d3a97752aaa9ffdb748d69a69978bc9441a5
|
| 3 |
+
size 85115417
|
data/usc-110-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:adf1e3f9cd1bada45ac9c331d5e095d8a48ddab039db3dba2ce5afa5f62d9e36
|
| 3 |
+
size 95782356
|
data/usc-111-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6eb25bdefe3656d80947a29393fd0ad4fe66c8f969aa3002715dc1b0d20c3ec6
|
| 3 |
+
size 88636013
|
data/usc-112-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8400df8d7d53280294958412cdbdc00227b113105e53c18cb12ccbdb91024db
|
| 3 |
+
size 75372060
|
data/usc-113-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43ec0cfd93654e346c14f254ac1ddd007c7357a493c23e9c6f5691a48851f7c1
|
| 3 |
+
size 76500764
|
data/usc-114-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fed236a8ef82c97d1a74330e355e5d41ba045a42b09a96c9c8e78b4c36851a9
|
| 3 |
+
size 86434055
|
data/usc-115-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aea7033482cd03dc07347938d91ad931be68c3fac30b020caddf290a53af4a05
|
| 3 |
+
size 78239615
|
data/usc-116-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:939f8a81dc7bd3a4f88b2ed9ee3ecac73f7ef2c8403b0d6a54ebd2ceb3ef9708
|
| 3 |
+
size 83792124
|
data/usc-117-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b8ed6f6ce5f1a066629eb29604222ed780ae4c5b243a4bdf5e069d45b8731be
|
| 3 |
+
size 84947141
|
data/usc-118-billstatus.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5db58421e3e386d3c79d2b84be9767d188a60cbd2b94644d0cd691162b2b90ba
|
| 3 |
+
size 60093268
|