Datasets:
Tasks:
Text Classification
Formats:
csv
Languages:
English
Size:
10K - 100K
Tags:
legal
DOI:
License:
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
task_categories:
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
tags:
|
8 |
+
- legal
|
9 |
+
pretty_name: US 117th Congress Bills
|
10 |
+
size_categories:
|
11 |
+
- 10K<n<100K
|
12 |
+
---
|
13 |
+
|
14 |
+
# Dataset Card for Dataset US 117th Congress Bills
|
15 |
+
|
16 |
+
## Dataset Description
|
17 |
+
|
18 |
+
- **Homepage:** https://hunterheidenreich.com/posts/us-117th-congress-data-exploration/
|
19 |
+
- **Repository:**
|
20 |
+
- **Paper:**
|
21 |
+
- **Leaderboard:**
|
22 |
+
- **Point of Contact:** Hunter Heidenreich
|
23 |
+
|
24 |
+
### Dataset Summary
|
25 |
+
|
26 |
+
The US 117th Congress Bills dataset is a collection of all of the House Resolutions, House Joint Resolutions,
|
27 |
+
Senate Resolutions, and Senate Joint Resolutions introduced during the 117th Congress (2021-2022).
|
28 |
+
The task is to classify each bill into one of thirty-three major policy areas.
|
29 |
+
There are 11,389 bills in the training split and 3,797 bills in the testing split.
|
30 |
+
|
31 |
+
### Supported Tasks and Leaderboards
|
32 |
+
|
33 |
+
- `text-classification`: The goal is to classify each bill into one of thirty-three major policy areas. The dataset contains both a text label (`policy_areas`) and a class integer (`y`).
|
34 |
+
|
35 |
+
These classes correspond to:
|
36 |
+
- 0: Agriculture and Food
|
37 |
+
- 1: Animals
|
38 |
+
- 2: Armed Forces and National Security
|
39 |
+
- 3: Arts, Culture, Religion
|
40 |
+
- 4: Civil Rights and Liberties, Minority Issues
|
41 |
+
- 5: Commerce
|
42 |
+
- 6: Congress
|
43 |
+
- 7: Crime and Law Enforcement
|
44 |
+
- 8: Economics and Public Finance
|
45 |
+
- 9: Education
|
46 |
+
- 10: Emergency Management
|
47 |
+
- 11: Energy
|
48 |
+
- 12: Environmental Protection
|
49 |
+
- 13: Families
|
50 |
+
- 14: Finance and Financial Sector
|
51 |
+
- 15: Foreign Trade and International Finance
|
52 |
+
- 16: Government Operations and Politics
|
53 |
+
- 17: Health
|
54 |
+
- 18: Housing and Community Development
|
55 |
+
- 19: Immigration
|
56 |
+
- 20: International Affairs
|
57 |
+
- 21: Labor and Employment
|
58 |
+
- 22: Law
|
59 |
+
- 23: Native Americans
|
60 |
+
- 24: Private Legislation
|
61 |
+
- 25: Public Lands and Natural Resources
|
62 |
+
- 26: Science, Technology, Communications
|
63 |
+
- 27: Social Sciences and History
|
64 |
+
- 28: Social Welfare
|
65 |
+
- 29: Sports and Recreation
|
66 |
+
- 30: Taxation
|
67 |
+
- 31: Transportation and Public Works
|
68 |
+
- 32: Water Resources Development
|
69 |
+
|
70 |
+
There is no leaderboard currently.
|
71 |
+
|
72 |
+
### Languages
|
73 |
+
|
74 |
+
English
|
75 |
+
|
76 |
+
## Dataset Structure
|
77 |
+
|
78 |
+
### Data Instances
|
79 |
+
|
80 |
+
```
|
81 |
+
index 11047
|
82 |
+
id H.R.4536
|
83 |
+
policy_areas Social Welfare
|
84 |
+
cur_summary Welfare for Needs not Weed Act\nThis bill proh...
|
85 |
+
cur_text To prohibit assistance provided under the prog...
|
86 |
+
title Welfare for Needs not Weed Act
|
87 |
+
titles_official To prohibit assistance provided under the prog...
|
88 |
+
titles_short Welfare for Needs not Weed Act
|
89 |
+
sponsor_name Rep. Rice, Tom
|
90 |
+
sponsor_party R
|
91 |
+
sponsor_state SC
|
92 |
+
Name: 0, dtype: object
|
93 |
+
```
|
94 |
+
|
95 |
+
### Data Fields
|
96 |
+
|
97 |
+
- `index`: A numeric index
|
98 |
+
- `id`: The unique bill ID as a string
|
99 |
+
- `policy_areas`: The key policy area as a string. This is the classification label.
|
100 |
+
- `cur_summary`: The latest summary of the bill as a string.
|
101 |
+
- `cur_text`: The latest text of the bill as a string.
|
102 |
+
- `title`: The core title of the bill, as labeled on [Congress.gov](congress.gov), as a string.
|
103 |
+
- `titles_official`: All official titles of the bill (or nested legislation) as a string.
|
104 |
+
- `titles_short`: All short titles of the bill (or nested legislation) as a string.
|
105 |
+
- `sponsor_name`: The name of the primary representative sponsoring the legislation as a string.
|
106 |
+
- `sponsor_party`: The party of the primary sponsor as a string.
|
107 |
+
- `sponsor_state`: The home state of the primary sponsor as a string.
|
108 |
+
|
109 |
+
### Data Splits
|
110 |
+
|
111 |
+
The dataset was split into a training and testing split using a stratefied sampling, due to the class imbalance in the dataset.
|
112 |
+
|
113 |
+
Using scikit-learn, a quarter of the data (by class) is reserved for testing:
|
114 |
+
```
|
115 |
+
train_ix, test_ix = train_test_split(ixs, test_size=0.25, stratify=df['y'], random_state=1234567)
|
116 |
+
```
|
117 |
+
|
118 |
+
## Dataset Creation
|
119 |
+
|
120 |
+
### Curation Rationale
|
121 |
+
|
122 |
+
This dataset was created to provide a new dataset at the intersection of NLP and legislation.
|
123 |
+
Using this data for a simple major topic classification seemed like a practical first step.
|
124 |
+
|
125 |
+
### Source Data
|
126 |
+
|
127 |
+
#### Initial Data Collection and Normalization
|
128 |
+
|
129 |
+
Data was collected from [congress.gov](congress.gov) with minimal pre-processing.
|
130 |
+
Additional information about this datasets collection is discussed [here](https://hunterheidenreich.com/posts/us-117th-congress-data-exploration/#data---how-it-was-obtained).
|
131 |
+
|
132 |
+
#### Who are the source language producers?
|
133 |
+
|
134 |
+
Either [Congressional Research Service](https://www.congress.gov/help/legislative-glossary#glossary_crs) or other congressional staffers.
|
135 |
+
|
136 |
+
### Annotations
|
137 |
+
|
138 |
+
#### Who are the annotators?
|
139 |
+
|
140 |
+
Congressional Staff
|
141 |
+
|
142 |
+
### Personal and Sensitive Information
|
143 |
+
|
144 |
+
None, this is publicly available text through [congress.gov](congress.gov).
|
145 |
+
|
146 |
+
## Additional Information
|
147 |
+
|
148 |
+
### Licensing Information
|
149 |
+
|
150 |
+
MIT License
|