Layout-aware document ML · OCR · extraction prototypes · public code and writeups

Pipeline diagram for document images, OCR, layout-aware modeling, validation, and structured output
Project boundary: scanned or semi-structured documents into typed fields, labels, and reviewable outputs.

This project line groups my earlier public document-understanding work: LayoutLM classification, driver-license OCR/object detection, invoice field extraction, and SaastIE-style information extraction. It is the right place for the older Medium posts because the posts explain the build path behind the repositories.

How to read this page

  • LayoutLM: document classification where layout and OCR tokens both matter.
  • Driver-license OCR: object detection for locating fields before extraction.
  • Invoice extraction: semi-structured document parsing and field extraction.
  • Current status: useful public trail of earlier document ML work, not a current product claim.

How the projects fit together

The common thread is that document understanding is rarely just text classification. A useful pipeline has to decide what kind of document it is, where the relevant fields are, what text is attached to those fields, and how a person can validate the result. The repos in this group each cover one slice of that pipeline.

That is also why this page links the Medium posts rather than hiding them. The posts show the earlier implementation path: how I framed the document task, what model family I used, and where OCR or object detection entered the pipeline.

public work

related writing

What held up and what I would change now

The part that held up is the pipeline framing: documents need layout, text, visual region detection, and validation hooks. The part I would change today is the evaluation and packaging. I would separate demo notebooks from reusable library code, add clearer dataset/provenance notes, and make the review step explicit instead of treating extraction as the end of the workflow.

Project artifacts