gabrielaltay commited on
Commit
ae39d7b
1 Parent(s): a26c295

Upload folder using huggingface_hub

Browse files
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-textversion.parquet
7
+ - split: '114'
8
+ path: data/usc-114-textversion.parquet
9
+ - split: '115'
10
+ path: data/usc-115-textversion.parquet
11
+ - split: '116'
12
+ path: data/usc-116-textversion.parquet
13
+ - split: '117'
14
+ path: data/usc-117-textversion.parquet
15
+ - split: '118'
16
+ path: data/usc-118-textversion.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
+
40
+ # TEXTVERSIONS (text for congresses 113-118)
41
+
42
+ * https://www.govinfo.gov/bulkdata/BILLS
43
+ * https://xml.house.gov/
44
+ * https://github.com/usgpo/bill-dtd?tab=readme-ov-file
45
+
46
+ These xml files contain multiple text versions for each bill.
47
+
48
+
49
+ # Column Descriptions
50
+
51
+ | Column | Description |
52
+ |--------|-------------|
53
+ | tv_id | a unique ID for each text version (`{congress_num}-{legis_type}-{legis_num}-{legis_version}-{xml_type}`) |
54
+ | legis_id | a unique ID for each bill (`{congress_num}-{legis_type}-{legis_num}`) |
55
+ | congress_num | the congress number for the bill |
56
+ | legis_type | one of [`hr`, `hres`, `hconres`, `hjres`, `s`, `sres`, `sconres`, `sjres`] (see [govinfo - types of legislation](https://www.govinfo.gov/help/bills)) |
57
+ | legis_num | bills in each congress and of each type get an incrementing number as part of their ID |
58
+ | legis_version | version of bill text (see [govinfo - common versions of bills](https://www.govinfo.gov/help/bills)) |
59
+ | legis_class | one of [`bills`, `plaw`] |
60
+ | bulk_path | XML file path during bulk download |
61
+ | file_name | last part of bulk_path. used in joining to billstatus |
62
+ | lastmod | lastmod date during bulk download |
63
+ | xml_type | one of [`dtd`, `uslm`] |
64
+ | root_tag | the root xml tag. one of [`bill`, `resolution`, `amendment-doc`, `pLaw`]|
65
+ | tv_xml | contents of textversion XML file |
66
+ | tv_txt | a plain text version of the XML content |
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-textversion")
79
+
80
+ # load a single congress number into a `Dataset`
81
+ ds = load_dataset(path="hyperdemocracy/usc-textversion", split=117)
82
+
83
+ # load all congress numbers into a single `Dataset`
84
+ ds = load_dataset(path="hyperdemocracy/usc-textversion", 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-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46237b86ffbdd14d60f0cd3384989003f2cbfd5fa521654e4ade7128f810e145
3
+ size 276374290
data/usc-114-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d62c355bb3085463148fd29dd88c7942b6d5cc4d0deb192ab4629f699bac60c
3
+ size 304846777
data/usc-115-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dd084fee3fbfe4fb6c3ff7341620636fa1cb6b9aea4218b33204ec31776984c
3
+ size 334716941
data/usc-116-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbaeefa8c284d3f2380dd466a3dbf63abc2f0acaa87ec785ab8db27720e56a3d
3
+ size 420532890
data/usc-117-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6980b1569419549dec5c331ca582465660e4044cbc03a64f13de347e183fb56
3
+ size 448378534
data/usc-118-textversion.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d36ed67bd5e5915ec8d70176918e8532be25c624e2a919d079a52ea95024c219
3
+ size 239745453