← All projects
Project record1 mention
Originally shared on Hacker News

doc2struct

doc2struct is an MIT-licensed document parsing algorithm that parses documents fast on a single CPU thread — e.g., all 2025 annual reports (19GB) in 40s — while preserving nesting and performing mild table cleaning.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. doc2struct

    doc2struct is an MIT-licensed document parsing algorithm that parses documents fast on a single CPU thread — e.g., all 2025 annual reports (19GB) in 40s — while preserving nesting and performing mild table cleaning.

    Posted by @jgfriedman1999 · Original source ↗

    Source text · @jgfriedman1999 · · Source ↗

    mit license: https://github.com/john-friedman/doc2struct

    Source text · @jgfriedman1999 · · Source ↗

    doc2struct is an algorithm that can parse documents fast on one thread. For example it can parse every every 2025 annual report 19GB in 40s.

    Source text · @jgfriedman1999 · · Source ↗

    It preserves nesting, does mild table cleaning, among other things.

    Story title · @jgfriedman1999 · · Source ↗

    Show HN: Document parsing 5B tokens on a single CPU thread