Skip to content

v6 — re-OCR corpus + derived databases

Latest

Choose a tag to compare

@rhowardstone rhowardstone released this 22 Nov 23:26
· 1 commit to main since this release

v6 — re-OCR corpus and derived databases (2026-11-22)

Every page of the release was re-OCRed with Google Document AI in November 2026.

What changed from v5.2

full_text_corpus (ftc_v6_part_*, reassemble then gunzip)

  • pages.text_content — the NEW OCR. What search matches.
  • pages.text_doj — DOJ's original text layer, preserved unchanged.

Both columns are queryable, and comparing them shows what the original release
was illegible about. Measured effects:

Pages re-OCRed 2,926,271
Materially more legible 58,189
Had only a Bates stamp before, now carry text 12,535
Old layer contained text the page does not bear 7,968
беляков (Cyrillic) 0 hits before, 342 now

Non-Latin script (Cyrillic, Greek) now reads correctly. Handwriting is far
more legible, though still imperfect.

New in this corpus:

  • doc_search.has_handwriting + page_handwriting — 13,148 pages where
    handwriting is likely, tiered confirmed / likely / possible. Built from
    three disagreeing signals; approximate, not a census.
  • doc_search.has_ocr_gain + page_ocr_gain — 71,413 pages the re-OCR
    improved, 33,729 documents.

Why the derived databases are included

Fourteen of these have no builder script in existence — they cannot be
regenerated from the PDFs by us or anyone else. They are shipped so the site is
reconstructable, not merely inspectable. v5.2 carried March versions; most have
changed since.

Caveats, stated plainly

  • The FAISS semantic index is NOT in this release. The v5.2 index was built
    on the OLD text and re-embedding 2.9M pages measures at ~143 h on CPU. Until
    that runs, semantic search and keyword search disagree. Use v5.2's
    faiss_index_sq8.bin only if you accept that it indexes superseded text.
  • Transcripts and image descriptions are no longer in the page text. They
    used to be appended under a [═══ TRANSCRIPT ═══] delimiter; the new OCR
    layer replaced that field. They live in handwriting_transcriptions
    (1,351 human + 6,002 machine) and image_analysis (92,249). A machine
    description is a model's account of an image, not evidence of what a page says.
  • document_status is the public copy: nine columns, no per-document PII flags.
  • Enhanced PDFs (314 GB) are not here; they serve from the site.
  • The handwriting flag is ~70% precise by eye and catches ~55% of what a human
    would call handwriting. Useful for hunting, wrong as a count.

Reassembling the corpus

cat ftc_v6_part_* | gunzip > full_text_corpus.db

CC BY-NC-SA 4.0.