Show HN: Document parsing 5B tokens on a single CPU thread
Category: library
Tags: document-parsing, html-to-dict, pdf-parser, python, rule-based
Score: 5.5/10 (Innovation: 5, Technical: 6, Documentation: 6, Utility: 5)
doc2dict is a Python library that converts HTML, XML, and PDF documents into nested dictionaries using configurable mapping rules. It emphasizes high-performance single-threaded parsing (hundreds of pages per second) and supports table extraction with cleaning, targeted at financial filings like 10-Ks. The project is early-stage and has been superseded by the author's doc2struct, but offers an interesting modular rule-based parsing approach.
Target audience: data engineers, backend devs, financial data analysts
Repository: https://github.com/john-friedman/doc2dict · HTML · MIT · 66 stars
View on Hacker News