american_municipal_law
收藏资源简介:
该数据集为美国市政法规(American Municipal Law)的研究快照,由 justiceDAO 项目收集,旨在提供美国各市/县法规的结构化数据。数据来源于官方发布平台(如 Municode、eCode360、American Legal),通过爬虫采集并整理为 Parquet 格式。数据集包含四个批次(drops 1–4),共涵盖 326 个司法管辖区,涉及约 225,645 个 HTML 章节,分布在多个州(drop3 覆盖 29 个州,drop4 覆盖 21 个州)。每个管辖区提供两个配置:html 和 citation,分别存储法规的 HTML 文本和引用信息。此外,还包含元数据 JSON 文件。数据压缩采用 ZSTD 格式。该数据集适用于文本检索、法律信息提取、法规分析等自然语言处理任务。注意:本数据集仅供研究使用,不构成法律建议,且仅包含前四个批次的快照,后续收集仍在进行中。
This dataset is a research snapshot of American Municipal Law, collected by the justiceDAO project, aiming to provide structured data on municipal/county regulations across the United States. The data originates from official publishing platforms (such as Municode, eCode360, American Legal), gathered via web scraping and organized into Parquet format. The dataset includes four batches (drops 1–4), covering 326 jurisdictions, approximately 225,645 HTML sections, distributed across multiple states (drop3 covers 29 states, drop4 covers 21 states). Each jurisdiction offers two configurations: html and citation, storing the HTML text and citation information of the regulations respectively. Additionally, metadata JSON files are included. Data compression uses ZSTD format. This dataset is suitable for natural language processing tasks such as text retrieval, legal information extraction, and regulatory analysis. Note: This dataset is for research purposes only, does not constitute legal advice, and only contains snapshots from the first four batches; subsequent collection is ongoing.
数据集概述
American Municipal Law 是一个面向美国市/县级法典的法律文本研究快照数据集,由 justiceDAO 采集。该数据集目前收录了来自 1,283 个司法管辖区的数据(快照日期为 2026-09-04),规模在 1K 至 10K 之间,语言为英语。
数据内容与格式
数据集包含两个主要配置:
- html(默认配置):各司法辖区的 HTML 格式法典文件
- citation:对应的引用信息文件
文件布局为 american_law/data/{gnis}_html.parquet 和 {gnis}_citation.parquet,元数据存放在 american_law/metadata/{gnis}.json。所有文件均采用 ZSTD 压缩格式。
数据来源与合并
数据集的构建包含多个来源和批次:
- 通过
municode.py实时抓取的数据 - 通过
ecode360.py和amlegal.py采集的草案数据(基于 HTML/JSON) - 通过
run_batch_multi.py批量运行的数据 - 从
justicedao/american_municipal_law合并的 752 个司法辖区数据(其中 67 个因缺少 citation 文件被跳过) - 合并前 Hub 上已有 510 个辖区数据
数据清单由多个 manifest 文件记录,包括 first_drop_manifest.jsonl、drop2 至 drop4、drop_incr_* 增量清单以及 justicedao_merge_manifest.jsonl。
许可与声明
数据集采用自定义许可(名称为 municipal-codes-as-published),其内容为各官方主机或 Municode 发布的市政法典。justiceDAO 源数据采用 MIT 许可,本数据集打包为研究快照用途。数据集明确声明 不构成法律建议,正式文本以官方发布版本为准。
已知局限
- 更多城镇数据仍在持续采集中,抓取队列会排除已存在于 Hub 上的所有 GNIS
- 67 个 justicedao 的 html-only GNIS 未合并(因源端缺少 citation parquet 文件)
- eCode360 和 American Legal 的抓取器仍处于草案/MVP 阶段,正在进行浸泡测试
- 嵌入向量 parquet 文件未包含在本数据集中




