datamatters24/research-document-archive
Research Document Archive 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. Files File Rows Description documents.parquet 234,630 Document metadata: id, source_section, file_path, file_hash, total_pages pages/<section>.parquet 3.1M Per-page OCR text + 1536-dim… See the full description on the dataset page: https://huggingface.co/datasets/datamatters24/research-document-archive.
Research Document Archive
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.
Files
Collections
Loading
from datasets import load_dataset
docs = load_dataset("datamatters24/research-document-archive", data_files="documents.parquet")
# Or load a specific sharded table:
import pyarrow.parquet as pq
pages = pq.read_table("hf://datasets/datamatters24/research-document-archive/pages/cia_mkultra.parquet")Methodology
- OCR: Tesseract + PyMuPDF
- NER: spaCy
en_core_web_lg - Topics: BART-large-MNLI (zero-shot) + BERTopic (unsupervised)
- Embeddings: sentence-transformers/all-MiniLM-L6-v2 (384-dim) and OpenAI text-embedding-3-small (1536-dim) per page
- Redaction detection: OpenCV contour analysis on PDF-rendered pages
- Entity relationships: page-window co-occurrence with distance weighting
Code: https://github.com/tedrubin80/Massivedata-Pull
