Dataset Viewer
Auto-converted to Parquet Duplicate
identifier
stringlengths
47
362
⌀
dataset
stringclasses
1 value
mime_type
stringclasses
3 values
tokens
listlengths
2
7.27M
score
float32
0
19k
text_source
stringclasses
2 values
source_format
stringclasses
5 values
p_useful
float64
0.71
0.98
⌀
q_decision
stringclasses
1 value
region_fallback
stringclasses
0 values
extractor
stringclasses
1 value
s3://data.kl3m.ai/documents/fdlp/gpo100004/www.govinfo.gov/content/pkg/GOVPUB-C13-685868df55ed7fa243e89dd667a9888b/pdf/GOVPUB-C13-685868df55ed7fa243e89dd667a9888b.pdf.json
fdlp
text/plain
[ 26, 128721, 12384, 1041, 30045, 126629, 1039, 5735, 290, 5521, 126629, 7965, 24, 233, 127564, 69351, 126629, 35583, 233, 128229, 53924, 26, 17574, 22, 126629, 22258, 2419, 1911, 24, 12139, 126629, 14895, 520, 22293, 126629, 15478, 11663, 1041...
0
v1
pdf
null
null
null
null
s3://data.kl3m.ai/documents/fdlp/gpo100005/www.govinfo.gov/content/pkg/GOVPUB-C13-5bf7dd45e821806f57b0783cca8cdecb/pdf/GOVPUB-C13-5bf7dd45e821806f57b0783cca8cdecb.pdf.json
fdlp
text/plain
[ 6339, 356, 6025, 4798, 126629, 8103, 74, 434, 546, 24, 398, 25, 429, 320, 74, 539, 26, 402, 4364, 83, 26, 126629, 12291, 429, 325, 12962, 42509, 40237, 25247, 126629, 52, 605, 41505, 290, 126629, 82256, 297, 5976, 126629, 5187, 233, 1...
1.153623
v1
pdf
null
null
null
null
s3://data.kl3m.ai/documents/fdlp/gpo100/CR-2006-214259.pdf.json
fdlp
text/plain
[ 5163, 288, 233, 128107, 53134, 374, 126629, 125335, 2761, 24, 233, 127929, 24, 25031, 24, 5805, 126629, 77732, 31700, 25, 5508, 1475, 42102, 301, 126629, 76426, 480, 52, 13035, 47, 816, 101, 7598, 807, 126629, 34814, 27, 3278, 1052, 2883,...
1.270687
v1
pdf
null
null
null
null
s3://data.kl3m.ai/documents/fdlp/gpo100006/www.govinfo.gov/content/pkg/GOVPUB-C13-5c017de8d7c2a017309b15e06738eda5/pdf/GOVPUB-C13-5c017de8d7c2a017309b15e06738eda5.pdf.json
fdlp
text/plain
[ 35583, 126629, 20747, 786, 25, 7966, 126629, 80897, 126629, 8351, 126629, 1829, 343, 25, 82502, 126629, 77, 982, 7208, 31, 336, 100743, 7618, 290, 280, 5025, 126629, 7923, 933, 98376, 286, 26102, 1636, 290, 126629, 20255, 25, 8761, 7490, ...
1.344417
v1
pdf
null
null
null
null
"s3://data.kl3m.ai/documents/fdlp/gpo10000/www.govinfo.gov/content/pkg/CHRG-111shrg58405/pdf/CHRG-11(...TRUNCATED)
fdlp
text/plain
[129006,32444,46186,15579,126629,19606,947,233,126629,3337,2248,389,280,24846,290,2681,24,233,129006(...TRUNCATED)
164.011673
v1
pdf
null
null
null
null
s3://data.kl3m.ai/documents/fdlp/gpo10001/pib11-14.pdf.json
fdlp
text/plain
[50950,8614,38,414,27,792,27,4292,233,126629,28790,6530,41572,390,128402,345,583,25,729,233,126629,3(...TRUNCATED)
7.9378
v1
pdf
null
null
null
null
"s3://data.kl3m.ai/documents/fdlp/gpo100000/www.govinfo.gov/content/pkg/GOVPUB-C13-5b039f2fd89d61f40(...TRUNCATED)
fdlp
text/plain
[35583,126629,80331,126629,106,126629,461,94,126629,80331,126629,26,128721,12384,1041,5162,611,24,12(...TRUNCATED)
2.014311
v1
pdf
null
null
null
null
"s3://data.kl3m.ai/documents/fdlp/gpo100008/www.govinfo.gov/content/pkg/GOVPUB-C13-6299f0b2e7265e4d1(...TRUNCATED)
fdlp
text/plain
[12337,2033,11996,126629,6339,5735,126629,670,5521,126629,129001,233,128721,2203,290,8048,211,29,211(...TRUNCATED)
1.7176
v1
pdf
null
null
null
null
"s3://data.kl3m.ai/documents/fdlp/gpo1000/www.govinfo.gov/content/pkg/CHRG-111shrg54811/pdf/CHRG-111(...TRUNCATED)
fdlp
text/plain
[129006,32444,46186,15579,126629,19606,947,233,126629,3337,2248,389,280,24846,290,2681,24,233,129006(...TRUNCATED)
76.87748
v1
pdf
null
null
null
null
"s3://data.kl3m.ai/documents/fdlp/gpo100010/www.govinfo.gov/content/pkg/GOVPUB-C13-5c84d5503dabd45cf(...TRUNCATED)
fdlp
text/plain
[94,126629,15610,126629,45,5470,3139,601,398,3199,3199,325,126629,30591,39,88,41370,55090,24,290,838(...TRUNCATED)
1.297193
v1
pdf
null
null
null
null
End of preview. Expand in Data Studio

KL3M Data: Federal Depository Library Program (FDLP)

Version 1.1: re-extracted with kaos-web

Version 1.1 replaces the text of the HTML pages in this dataset with a new extraction made with kaos-web and kaos-content. kaos-web picks the main content region of each page (readability), and kaos-content converts that region to a document tree, which is serialized as plain text. Pages are re-extracted from the same crawl captures that version 1 used.

What changed

  • Re-extracted formats: HTML pages (including pages saved without a file extension, and RSS/Atom feeds served as HTML). Every other format (PDF, Word, Excel, PowerPoint, plain text, XML and other files) keeps its version 1 text unchanged and is marked text_source = "v1". Those formats will be re-extracted in a later version.
  • Rows: this version has 279,088 rows: the 279,093 rows of version 1, with the same identifiers in the same order, minus 5 withheld rows (see below). No rows were added. 17,732 rows (6.4%) carry re-extracted text; 261,356 rows (93.6%) keep their version 1 text.
  • Tokens: tokens was re-computed for every re-extracted row with the same tokenizer as version 1, kl3m-004-128k-cased. The tokenizer applies Unicode NFKC normalization, so decoding tokens gives the NFKC form of the extracted text (for example "…" decodes as "..." and "™" as "TM"). Version 1 behaved the same way. Every re-extracted row was checked: decoding its tokens reproduces the NFKC-normalized extraction exactly.
  • score: the KL3M quality score of version 1, re-computed on the new tokens with the same KL3M code. Rows that keep version 1 text keep their version 1 score.
  • 5 rows were withheld from this version because they contain a personal identification number.
  • Most rows in this dataset are PDF documents; they keep their version 1 text and will be re-extracted in a later version. HTML pages were re-extracted only where the page identifier matches a re-extracted capture exactly; 85,969 HTML rows without such a match keep their version 1 text.
  • Right-to-left text: 20 rows whose text is mostly in a right-to-left script (Arabic, Hebrew, Persian and similar; at least 20% of letters) are listed in flags/train_exclude.parquet (file, row, identifier). These rows stay in the dataset but are excluded from ALEA model training.

Blind review. Reviewers compared the new text with the earlier KL3M text, as cleaned for training, on 100 randomly drawn .gov pages from pages that passed the earlier training filters, without knowing which text was which. Reviewers preferred the new text 68 times and the earlier text 27 times; 5 were ties. Damage per 1,000 words:

new text earlier KL3M text, as cleaned for training
glued words 0.14 8.6
leftover markup 3.5 11.3
meaning-changing errors 0.10 7.8

A second blind review compared the re-extracted text with the original KL3M extraction re-run on the same captures, on 100 pages that were not pre-filtered. The pages were drawn from those re-extracted because their first extraction repeated text found across many pages of the same site (60 from six sites with heavy repeated navigation, 40 from other sites), and the new side was the first of three re-extraction rounds for these pages. Reviewers preferred the new text 90 times and the original 7 times; 3 were ties.

New columns

column type meaning
text_source string "kaos-web" for re-extracted text; "v1" for text kept from version 1
source_format string format of the captured source document: html, pdf, office, txt or other
p_useful float64 advisory quality signal: estimated probability that the page is useful content rather than navigation, search facets or a stub, from quality model model_v2:b7b993065b1a on cheesecloth 0.3.0 @ 3e5167ce text features. This dataset is not filtered on it. Null for v1 rows
q_decision string advisory label from the same model: drop below 0.1451, review up to 0.1974, keep above, empty for empty text. It is not a filter: in a fresh blind check the 0.1451 drop threshold removed useful pages, mostly statistical tables. Null for v1 rows
region_fallback string which extraction path produced the text, for pages re-extracted because their first extraction matched text repeated across many pages of the same site: l3, main, readability or semantic (a kaos-web content region), bcweb (the bc-web extractor) or body (the whole page body). Null for pages kept from the first extraction; null for v1 rows
extractor string JSON with the kaos-web and kaos-content commit SHAs used; null for v1 rows

Known limitations

  • No rows were removed for quality. p_useful and q_decision are advisory signals only.
  • Pages with region_fallback = "body" carry the whole page body, which is mostly navigation and other page furniture around the content.
  • Some statistical tables (for example Bureau of Labor Statistics benefit tables) still print one table cell per line.

Version 1 is kept unchanged on the v1 branch:

from datasets import load_dataset
v1 = load_dataset("alea-institute/kl3m-data-fdlp", revision="v1")

KL3M Data Project

Note: This page provides general information about the KL3M Data Project. Additional details specific to this dataset will be added in future updates. For complete information, please visit the GitHub repository or refer to the KL3M Data Project paper.

Description

This dataset is part of the ALEA Institute's KL3M Data Project, which provides copyright-clean training resources for large language models.

Dataset Details

  • Format: Parquet files containing document text and metadata
  • License: CC BY 4.0
  • Tokenizer: The tokens field uses the kl3m-004-128k-cased tokenizer, a case-sensitive 128K vocabulary tokenizer optimized for legal, financial, and enterprise documents

Abstract

Practically all large language models have been pre-trained on data that is subject to global uncertainty related to copyright infringement and breach of contract. This creates potential risk for users and developers due to this uncertain legal status. The KL3M Data Project directly confronts this critical issue by introducing the largest comprehensive training data pipeline that minimizes risks related to copyright or breach of contract.

The foundation of this project is a corpus of over 132 million documents and trillions of tokens spanning 16 different sources that have been verified to meet the strict copyright and licensing protocol detailed in the project. We are releasing the entire pipeline, including:

  1. The source code to acquire and process these documents
  2. The original document formats with associated provenance and metadata
  3. Extracted content in a standardized format
  4. Pre-tokenized representations of the documents
  5. Various mid- and post-train resources such as question-answer, summarization, conversion, drafting, classification, prediction, and conversational data

All of these resources are freely available to the public on S3, Hugging Face, and GitHub under CC-BY terms. We are committed to continuing this project in furtherance of a more ethical, legal, and sustainable approach to the development and use of AI models.

Legal Basis

This dataset is fully compliant with copyright law and contractual terms. The content is included based on the following legal foundation:

  • Public domain materials
  • US government works
  • Open access content under permissive licenses
  • Content explicitly licensed for AI training

Papers

For more information about the KL3M Data Project, please refer to:

Citation

If you use this dataset in your research, please cite:

@misc{bommarito2025kl3mdata,
  title={The KL3M Data Project: Copyright-Clean Training Resources for Large Language Models},
  author={Bommarito II, Michael J. and Bommarito, Jillian and Katz, Daniel Martin},
  year={2025},
  eprint={2504.07854},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}
@misc{bommarito2025kl3m,
  title={KL3M Tokenizers: A Family of Domain-Specific and Character-Level Tokenizers for Legal, Financial, and Preprocessing Applications},
  author={Bommarito II, Michael J. and Katz, Daniel Martin and Bommarito, Jillian},
  year={2025},
  eprint={2503.17247},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}

About ALEA

The ALEA Institute is a non-profit research organization focused on advancing AI for business, law, and governance. Learn more at https://aleainstitute.ai/.

Downloads last month
307

Models trained or fine-tuned on alea-institute/kl3m-data-fdlp

Collection including alea-institute/kl3m-data-fdlp

Papers for alea-institute/kl3m-data-fdlp