Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ task_categories:
|
|
| 15 |
|
| 16 |
United States governmental agencies often make proposed regulations open to the public for comment.
|
| 17 |
Proposed regulations are organized into "dockets". This dataset will use Regulation.gov public API
|
| 18 |
-
to aggregate and clean public comments for dockets that mention
|
| 19 |
|
| 20 |
Each example will consist of one docket, and include metadata such as docket id, docket title, etc.
|
| 21 |
Each docket entry will also include information about the top 10 comments, including comment metadata
|
|
@@ -28,6 +28,9 @@ The code used to call the api can be found in api_call.py.
|
|
| 28 |
If the user wants to call from the API
|
| 29 |
directly, reference [https://huggingface.co/datasets/ro-h/regulatory_comments_api].
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
## Dataset Details
|
| 32 |
|
| 33 |
### Dataset Description and Structure
|
|
@@ -45,13 +48,18 @@ The following information is included in this dataset:
|
|
| 45 |
|
| 46 |
id (int): A unique numerical identifier assigned to each regulatory docket.
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
purpose (str): Whether the docket was rulemaking, non-rulemaking, or other.
|
| 53 |
|
| 54 |
-
keywords (list
|
| 55 |
|
| 56 |
**Comment Metadata**
|
| 57 |
|
|
@@ -59,21 +67,24 @@ Note that huggingface converts lists of dictionaries to dictionaries of lists.
|
|
| 59 |
|
| 60 |
comment_id (int): A unique numerical identifier for each public comment submitted on the docket.
|
| 61 |
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
-
|
|
|
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
commenter_fname (str): The first name of the individual or entity that submitted the comment. This could be a person,
|
|
|
|
| 69 |
|
| 70 |
commenter_lname (str): The last name of the individual or entity that submitted the comment.
|
| 71 |
|
| 72 |
comment_length (int): The length of the comment in terms of the number of characters (spaces included)
|
| 73 |
|
| 74 |
**Comment Content**
|
| 75 |
-
text (str): The actual text of the comment submitted. This is the primary content for analysis, containing the
|
| 76 |
-
|
| 77 |
|
| 78 |
### Dataset Limitations
|
| 79 |
|
|
@@ -119,7 +130,7 @@ accordingly.
|
|
| 119 |
|
| 120 |
While this is a vital part of the United States regulatory process, there is little understanding of how agencies approach
|
| 121 |
public comments and modify their proposed regulations. Further, the data extracted from the API is often unclean and difficult
|
| 122 |
-
to navigate. This dataset seeks to offer some clarity through aggregating comments related to
|
| 123 |
an issue that a diversity of stakeholders have investment in.
|
| 124 |
|
| 125 |
|
|
@@ -131,7 +142,8 @@ title, context, purpose, and keywords. Additionally, the top 10 comments
|
|
| 131 |
for each docket are collected, including their metadata (comment ID, URL, date,
|
| 132 |
title, commenter's first and last name) and the comment text itself. The process
|
| 133 |
focuses on the first page of 25 comments for each docket, and the top 10 comments
|
| 134 |
-
are selected based on their order of appearance in the API response.
|
|
|
|
| 135 |
|
| 136 |
**Data Normalization:**
|
| 137 |
The collected data is normalized into a structured format. Each docket and
|
|
@@ -139,6 +151,10 @@ its associated comments are organized into a nested dictionary structure.
|
|
| 139 |
This structure includes key information about the docket and a list of comments,
|
| 140 |
each with its detailed metadata.
|
| 141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
**Tools and Libraries Used:**
|
| 143 |
Requests Library: Used for making API calls to the Regulations.gov API to fetch dockets and comments data.
|
| 144 |
Datasets Library from HuggingFace: Employed for defining and managing the dataset's structure and generation process.
|
|
|
|
| 15 |
|
| 16 |
United States governmental agencies often make proposed regulations open to the public for comment.
|
| 17 |
Proposed regulations are organized into "dockets". This dataset will use Regulation.gov public API
|
| 18 |
+
to aggregate and clean public comments for dockets that mention substance use.
|
| 19 |
|
| 20 |
Each example will consist of one docket, and include metadata such as docket id, docket title, etc.
|
| 21 |
Each docket entry will also include information about the top 10 comments, including comment metadata
|
|
|
|
| 28 |
If the user wants to call from the API
|
| 29 |
directly, reference [https://huggingface.co/datasets/ro-h/regulatory_comments_api].
|
| 30 |
|
| 31 |
+
For an example of how to use this dataset,
|
| 32 |
+
reference [https://colab.research.google.com/drive/1AiFznbHaDVszcmXYS3Ht5QLov2bvfQFX?usp=sharing].
|
| 33 |
+
|
| 34 |
## Dataset Details
|
| 35 |
|
| 36 |
### Dataset Description and Structure
|
|
|
|
| 48 |
|
| 49 |
id (int): A unique numerical identifier assigned to each regulatory docket.
|
| 50 |
|
| 51 |
+
agency (str): The abbreviation for the agency posting the regulatory docket (e.g., "FDA")
|
| 52 |
+
|
| 53 |
+
title (str): The official title or name of the regulatory docket. This title typically summarizes the main issue or
|
| 54 |
+
area of regulation covered by the docket.
|
| 55 |
+
|
| 56 |
+
update_date (str): The date when the docket was last modified on Regulations.gov.
|
| 57 |
|
| 58 |
+
update_time (str): The time when the docket was last modified on Regulations.gov.
|
| 59 |
|
| 60 |
purpose (str): Whether the docket was rulemaking, non-rulemaking, or other.
|
| 61 |
|
| 62 |
+
keywords (list): A string of keywords, as determined by Regulations.gov.
|
| 63 |
|
| 64 |
**Comment Metadata**
|
| 65 |
|
|
|
|
| 67 |
|
| 68 |
comment_id (int): A unique numerical identifier for each public comment submitted on the docket.
|
| 69 |
|
| 70 |
+
comment_url (str): A URL or web link to the specific comment or docket on Regulations.gov. This allows direct access
|
| 71 |
+
to the original document or page for replicability purposes.
|
| 72 |
|
| 73 |
+
comment_date (str): The date when the comment was posted on Regulations.gov. This is important for understanding the
|
| 74 |
+
timeline of public engagement.
|
| 75 |
|
| 76 |
+
comment_time (str): The time when the comment was posted on Regulations.gov.
|
| 77 |
|
| 78 |
+
commenter_fname (str): The first name of the individual or entity that submitted the comment. This could be a person,
|
| 79 |
+
organization, business, or government entity.
|
| 80 |
|
| 81 |
commenter_lname (str): The last name of the individual or entity that submitted the comment.
|
| 82 |
|
| 83 |
comment_length (int): The length of the comment in terms of the number of characters (spaces included)
|
| 84 |
|
| 85 |
**Comment Content**
|
| 86 |
+
text (str): The actual text of the comment submitted. This is the primary content for analysis, containing the
|
| 87 |
+
commenter's views, arguments, and feedback on the regulatory matter.
|
| 88 |
|
| 89 |
### Dataset Limitations
|
| 90 |
|
|
|
|
| 130 |
|
| 131 |
While this is a vital part of the United States regulatory process, there is little understanding of how agencies approach
|
| 132 |
public comments and modify their proposed regulations. Further, the data extracted from the API is often unclean and difficult
|
| 133 |
+
to navigate. This dataset seeks to offer some clarity through aggregating comments related to substance use,
|
| 134 |
an issue that a diversity of stakeholders have investment in.
|
| 135 |
|
| 136 |
|
|
|
|
| 142 |
for each docket are collected, including their metadata (comment ID, URL, date,
|
| 143 |
title, commenter's first and last name) and the comment text itself. The process
|
| 144 |
focuses on the first page of 25 comments for each docket, and the top 10 comments
|
| 145 |
+
are selected based on their order of appearance in the API response. Dockets
|
| 146 |
+
with no comments are filtered out.
|
| 147 |
|
| 148 |
**Data Normalization:**
|
| 149 |
The collected data is normalized into a structured format. Each docket and
|
|
|
|
| 151 |
This structure includes key information about the docket and a list of comments,
|
| 152 |
each with its detailed metadata.
|
| 153 |
|
| 154 |
+
**Data Cleaning:**
|
| 155 |
+
HTML text tags are removed from comment text. However, the content of the comment remains
|
| 156 |
+
unedited, meaning any typos or grammatical errors in the original comment are preserved.
|
| 157 |
+
|
| 158 |
**Tools and Libraries Used:**
|
| 159 |
Requests Library: Used for making API calls to the Regulations.gov API to fetch dockets and comments data.
|
| 160 |
Datasets Library from HuggingFace: Employed for defining and managing the dataset's structure and generation process.
|