Datasets:
Full dataset: documents, pages (3.1M w/ embeddings), entities (31M), topics, features, keywords, events, relationships
Browse files- README.md +51 -86
- dataset-metadata.json +6 -0
- document_dates.parquet +3 -0
- document_events.parquet +3 -0
- document_features.parquet +3 -0
- document_keywords.parquet +3 -0
- document_topics.parquet +3 -0
- documents.parquet +3 -0
- entities/cia_declassified.parquet +3 -0
- entities/cia_mkultra.parquet +3 -0
- entities/cia_stargate.parquet +3 -0
- entities/doj_disclosures.parquet +3 -0
- entities/house_resolutions.parquet +3 -0
- entities/jfk_assassination.parquet +3 -0
- entities/lincoln_archives.parquet +3 -0
- entity_relationships.parquet +3 -0
- historical_events.parquet +3 -0
- pages/cia_declassified.parquet +3 -0
- pages/cia_mkultra.parquet +3 -0
- pages/cia_stargate.parquet +3 -0
- pages/doj_disclosures.parquet +3 -0
- pages/house_resolutions.parquet +3 -0
- pages/jfk_assassination.parquet +3 -0
- pages/lincoln_archives.parquet +3 -0
README.md
CHANGED
|
@@ -1,106 +1,71 @@
|
|
| 1 |
---
|
| 2 |
-
license: mit
|
| 3 |
-
task_categories:
|
| 4 |
-
- text-classification
|
| 5 |
-
- token-classification
|
| 6 |
-
- text-mining
|
| 7 |
language:
|
| 8 |
-
- en
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
- jfk
|
| 15 |
-
- cia
|
| 16 |
-
- ocr
|
| 17 |
-
- document-analysis
|
| 18 |
size_categories:
|
| 19 |
-
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
|
| 22 |
# Research Document Archive
|
| 23 |
|
| 24 |
-
234,630 declassified U.S. government documents
|
| 25 |
-
|
| 26 |
-
**Live platform:** [tanglewoodapp.com](https://tanglewoodapp.com)
|
| 27 |
-
|
| 28 |
-
## Collections
|
| 29 |
-
|
| 30 |
-
| Collection | Documents | Pages | Size |
|
| 31 |
-
|---|---|---|---|
|
| 32 |
-
| House Resolutions | 181,092 | 2,719,832 | 34.2 GB |
|
| 33 |
-
| JFK Assassination Records | 35,979 | 241,860 | 22.5 GB |
|
| 34 |
-
| CIA Stargate Program | 13,937 | 100,056 | 5.4 GB |
|
| 35 |
-
| CIA MKUltra | 1,936 | 64,244 | 3.4 GB |
|
| 36 |
-
| CIA Declassified | 1,605 | 29,744 | 2.4 GB |
|
| 37 |
-
| Lincoln Archives | 21 | 9,330 | 962.9 MB |
|
| 38 |
|
| 39 |
-
##
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
13. Index building for search and retrieval
|
| 54 |
|
| 55 |
-
##
|
| 56 |
-
|
| 57 |
-
| Stamp | Count |
|
| 58 |
-
|---|---|
|
| 59 |
-
| UNCLASSIFIED | 16,501 |
|
| 60 |
-
| SECRET | 13,736 |
|
| 61 |
-
| CLASSIFIED | 10,730 |
|
| 62 |
-
| EXEMPT | 6,739 |
|
| 63 |
-
| CONFIDENTIAL | 5,554 |
|
| 64 |
-
| RESTRICTED | 4,722 |
|
| 65 |
-
|
| 66 |
-
## Key Statistics
|
| 67 |
|
| 68 |
-
|
| 69 |
-
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
-
##
|
| 75 |
|
| 76 |
```python
|
| 77 |
from datasets import load_dataset
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
jfk = ds.filter(lambda x: x["collection"] == "jfk_assassination")
|
| 83 |
-
|
| 84 |
-
# Search by entity
|
| 85 |
-
cia_docs = ds.filter(lambda x: "CIA" in x["entities"])
|
| 86 |
```
|
| 87 |
|
| 88 |
-
##
|
| 89 |
-
|
| 90 |
-
All documents are public record obtained from:
|
| 91 |
-
- National Archives (NARA)
|
| 92 |
-
- CIA FOIA Reading Room
|
| 93 |
-
- Congress.gov
|
| 94 |
-
- Library of Congress
|
| 95 |
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
| 99 |
-
@misc{rubin2026researcharchive,
|
| 100 |
-
author = {Rubin, Theodore},
|
| 101 |
-
title = {Research Document Archive: ML Pipeline for Declassified U.S. Government Documents},
|
| 102 |
-
year = {2026},
|
| 103 |
-
publisher = {HuggingFace},
|
| 104 |
-
url = {https://huggingface.co/datasets/datamatters24/research-document-archive}
|
| 105 |
-
}
|
| 106 |
-
```
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
language:
|
| 3 |
+
- en
|
| 4 |
+
license: cc0-1.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
- token-classification
|
| 8 |
+
- feature-extraction
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
size_categories:
|
| 10 |
+
- 100K<n<1M
|
| 11 |
+
tags:
|
| 12 |
+
- declassified
|
| 13 |
+
- government
|
| 14 |
+
- historical
|
| 15 |
+
- ocr
|
| 16 |
+
- entities
|
| 17 |
+
- embeddings
|
| 18 |
---
|
| 19 |
|
| 20 |
# Research Document Archive
|
| 21 |
|
| 22 |
+
Computational analysis of **234,630 declassified U.S. government documents** across 7 archival collections. Output of a 13-step ML pipeline extracting OCR text, entities, topics, keywords, redactions, and semantic embeddings from 3.1 million pages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
## Files
|
| 25 |
|
| 26 |
+
| File | Rows | Description |
|
| 27 |
+
|------|------|-------------|
|
| 28 |
+
| `documents.parquet` | 234,630 | Document metadata: id, source_section, file_path, file_hash, total_pages |
|
| 29 |
+
| `pages/<section>.parquet` | 3.1M | Per-page OCR text + 1536-dim sentence-transformer embeddings. Sharded by collection. |
|
| 30 |
+
| `entities/<section>.parquet` | 31M | Named entities (spaCy `en_core_web_lg`): PERSON, ORG, DATE, GPE, FAC, LOC, NORP, EVENT. Sharded by collection. |
|
| 31 |
+
| `document_topics.parquet` | 234,629 | BART-large-MNLI zero-shot topic assignments (per doc, top-1 topic + probability) |
|
| 32 |
+
| `document_features.parquet` | 1.17M | EAV feature table: `redaction_summary`, `forensic_metadata`, `bertopic`, `sentiment`, `topic_distribution`, `exact_duplicate` |
|
| 33 |
+
| `document_keywords.parquet` | 3.5M | TF-IDF keywords (top 15 per document, unigrams + bigrams) |
|
| 34 |
+
| `document_dates.parquet` | 234,630 | Inferred document dates (regex + header parsing) |
|
| 35 |
+
| `document_events.parquet` | 296K | Document-to-historical-event correlations (20 crisis events) |
|
| 36 |
+
| `historical_events.parquet` | 20 | Crisis event dictionary (event_name, date range, category, keywords) |
|
| 37 |
+
| `entity_relationships.parquet` | 2.88M | Entity co-occurrence pairs with counts, distances, and sample documents |
|
|
|
|
| 38 |
|
| 39 |
+
## Collections
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
| source_section | Documents | Source |
|
| 42 |
+
|---|---|---|
|
| 43 |
+
| `cia_declassified` | 1,605 | CIA Reading Room |
|
| 44 |
+
| `cia_mkultra` | 1,936 | MKULTRA release |
|
| 45 |
+
| `cia_stargate` | 13,937 | Stargate remote viewing program |
|
| 46 |
+
| `doj_disclosures` | — | DOJ public disclosures |
|
| 47 |
+
| `house_resolutions` | 181,092 | House.gov bill text (GovInfo API) |
|
| 48 |
+
| `jfk_assassination` | 35,979 | National Archives JFK release |
|
| 49 |
+
| `lincoln_archives` | 21 | Library of Congress |
|
| 50 |
|
| 51 |
+
## Loading
|
| 52 |
|
| 53 |
```python
|
| 54 |
from datasets import load_dataset
|
| 55 |
+
docs = load_dataset("datamatters24/research-document-archive", data_files="documents.parquet")
|
| 56 |
|
| 57 |
+
# Or load a specific sharded table:
|
| 58 |
+
import pyarrow.parquet as pq
|
| 59 |
+
pages = pq.read_table("hf://datasets/datamatters24/research-document-archive/pages/cia_mkultra.parquet")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
```
|
| 61 |
|
| 62 |
+
## Methodology
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
+
- **OCR**: Tesseract + PyMuPDF
|
| 65 |
+
- **NER**: spaCy `en_core_web_lg`
|
| 66 |
+
- **Topics**: BART-large-MNLI (zero-shot) + BERTopic (unsupervised)
|
| 67 |
+
- **Embeddings**: sentence-transformers/all-MiniLM-L6-v2 (384-dim) and OpenAI text-embedding-3-small (1536-dim) per page
|
| 68 |
+
- **Redaction detection**: OpenCV contour analysis on PDF-rendered pages
|
| 69 |
+
- **Entity relationships**: page-window co-occurrence with distance weighting
|
| 70 |
|
| 71 |
+
Code: https://github.com/tedrubin80/Massivedata-Pull
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset-metadata.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"title": "Research Document Archive",
|
| 3 |
+
"id": "theodorerubin/research-document-archive",
|
| 4 |
+
"licenses": [{"name": "CC0-1.0"}],
|
| 5 |
+
"keywords": ["declassified", "government", "ocr", "nlp", "entities", "embeddings", "historical"]
|
| 6 |
+
}
|
document_dates.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a7f8762301c3e68be882f7d3d8a06b539e4f4bf53a9870949dc6f36bbaa5f25
|
| 3 |
+
size 1574776
|
document_events.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bac010a1ca36fb650b4165b9ba842ed194a3b3059d1358a43f72181bfb225226
|
| 3 |
+
size 1502379
|
document_features.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a328d51d947848f51c54345eb1f3be28272df0f8e6fbed85b5478273d2dfc1b3
|
| 3 |
+
size 43375743
|
document_keywords.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59a8b742fe30d05598172b401a2ba911e3a80374ca12be48ff0dd55598de7403
|
| 3 |
+
size 66407634
|
document_topics.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6ba89a25f62c896afae0b16948666a1b031a47ccf75e738c3f53c40011841d3
|
| 3 |
+
size 3314345
|
documents.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd7c112dd96da5b0f03c04231a65b9003d248cafcf775f7206e5e5f40f2c74d7
|
| 3 |
+
size 25325980
|
entities/cia_declassified.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:691463bc43340cc7e17f3323a6f15d4207e10e8c2dedbf4d53f2eb8237fbe1e9
|
| 3 |
+
size 7518287
|
entities/cia_mkultra.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3edc24acb08159a501863cfacda4ab29febb03a63135fe3b97fcd103e6803d20
|
| 3 |
+
size 14479176
|
entities/cia_stargate.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:751895be820d4941f498b7b5a6920aea61b76d4dab7750e124f12fc1fba229d5
|
| 3 |
+
size 15231718
|
entities/doj_disclosures.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62bb2ac62bcfe1b3292310979f38dd0ba212e049226cb616660f8ba11529a87
|
| 3 |
+
size 19563
|
entities/house_resolutions.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a396ad252f7e731adb4d461f3834fcc034f5689d20da1550647fd118d23d8097
|
| 3 |
+
size 335349226
|
entities/jfk_assassination.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3e96f26d3f1069ff303fdc1dbfa2fe7cbcde0d719bdd045770a585cdfde48d3
|
| 3 |
+
size 93676256
|
entities/lincoln_archives.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9df19c7eda8fd9322ca6324f6c291434037a3a94e1c70649d4f10d0e8f294c93
|
| 3 |
+
size 2775404
|
entity_relationships.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9fb6427659919b16735a6ce9542fb180d7a6cd3d0421ecab61433d8116139a5
|
| 3 |
+
size 46367207
|
historical_events.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b277be553f2d72661d71b562e7a4a39e7f052ee99ea20283da530746ff0acfe
|
| 3 |
+
size 4373
|
pages/cia_declassified.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32a36f22cc30734b5b88796e601cfa596f2675debf5715ef0fefaaf8865c3125
|
| 3 |
+
size 97280396
|
pages/cia_mkultra.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f02c2a8cc3bf5e5ad6dbc909093776ec88ec1eee251bb32acb25162be51213f
|
| 3 |
+
size 248976568
|
pages/cia_stargate.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf151de429f59df85ea0b282876b7f775003bf1e399a7c6799eb06de5531e9d3
|
| 3 |
+
size 276204904
|
pages/doj_disclosures.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41a01d76c6021672007b80273c9293ed07e01df923933107f4a3b8da214b47d3
|
| 3 |
+
size 215615
|
pages/house_resolutions.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:132dd295332f6f0857bde40bba4cf3145a3767f4d7386e89a6b6cb042a0daf62
|
| 3 |
+
size 7830676342
|
pages/jfk_assassination.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9198168eab0467e29c0c6dce2e0a10d8a54ccd4efffd55cf278e3057fb06ceba
|
| 3 |
+
size 806920399
|
pages/lincoln_archives.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a91bd5f8f1792fe894f59962278c3dfa740f9b2e8353fe382cb8010e7a81e334
|
| 3 |
+
size 36318852
|