hyperdemocracy/usc-textversion
收藏资源简介:
该数据集是美国政府出版办公室(GPO)通过GovInfo批量数据仓库提供的国会数据的一部分。数据集包含美国国会113至118届的法案文本版本,以XML格式存储。数据集通过congress和legisplain两个仓库进行了下载和处理。数据集中的每个文本版本都有一个唯一的ID,并且包含了法案的唯一ID、国会编号、法案类型、法案编号、法案版本、法案类别、XML文件路径、文件名、最后修改日期、XML类型、根标签、XML内容和纯文本内容等信息。数据集还提供了如何使用该数据集的示例代码,以及国会编号与年份的映射关系。
This dataset is part of a family of datasets that provide convenient access to congressional data from the US Government Publishing Office (GPO) via the GovInfo Bulk Data Repository. The dataset contains text versions of bills from the 113th to the 118th Congress of the United States, stored in XML format. The raw XML files were downloaded and processed using the congress and legisplain repositories. Each text version in the dataset has a unique ID and includes information such as the bills unique ID, congress number, legislation type, legislation number, legislation version, legislation class, XML file path, file name, last modification date, XML type, root tag, XML content, and plain text content. The README also provides example code on how to use the dataset and a mapping of congress numbers to years.
数据集概述
数据集描述
该数据集是提供美国国会数据的系列数据集之一,通过美国政府出版办公室(GPO)的GovInfo批量数据存储库提供。原始XML文件通过congress仓库下载,并使用legisplain仓库进行进一步处理。
数据集组成
数据集包含113至118届国会的法案文本版本,每个版本以XML格式存储。
数据文件
- 配置名称:default
- 数据文件路径:
- 113届:
data/usc-113-textversion.parquet - 114届:
data/usc-114-textversion.parquet - 115届:
data/usc-115-textversion.parquet - 116届:
data/usc-116-textversion.parquet - 117届:
data/usc-117-textversion.parquet - 118届:
data/usc-118-textversion.parquet
- 113届:
数据集字段描述
| 列名 | 描述 |
|---|---|
| tv_id | 每个文本版本的唯一ID ({congress_num}-{legis_type}-{legis_num}-{legis_version}-{xml_type}) |
| legis_id | 每个法案的唯一ID ({congress_num}-{legis_type}-{legis_num}) |
| congress_num | 法案所属的国会届数 |
| legis_type | 法案类型,包括hr, hres, hconres, hjres, s, sres, sconres, sjres |
| legis_num | 每届国会和每种类型法案的递增编号 |
| legis_version | 法案文本版本 |
| legis_class | 法案类别,包括bills, plaw |
| bulk_path | 批量下载时的XML文件路径 |
| file_name | bulk_path的最后部分,用于与billstatus连接 |
| lastmod | 批量下载时的最后修改日期 |
| xml_type | XML类型,包括dtd, uslm |
| root_tag | 根XML标签,包括bill, resolution, amendment-doc, pLaw |
| tv_xml | 文本版本XML文件的内容 |
| tv_txt | XML内容的纯文本版本 |
数据集示例
数据集按国会届数分为多个子集(每个子集对应一个国会届数)。
国会届数与时间映射
| 国会届数 | 年份 | 元数据 | 文本 |
|---|---|---|---|
| 118 | 2023-2024 | True | True |
| 117 | 2021-2022 | True | True |
| 116 | 2019-2020 | True | True |
| 115 | 2017-2018 | True | True |
| 114 | 2015-2016 | True | True |
| 113 | 2013-2014 | True | True |




