Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Document Ingestion Pipelines

Free · sign in to start and track progress

1 · Reading real-world documents

  • 1What a real case file contains
  • 2Parsing: text layers to vision models
  • 3Tables, plans and handwriting

    Exercise answers

    • Answer: Verify tables and plan references in code
    • Answer: Measure two-reader agreement on handwriting
  • 4Structured extraction at scale

2 · Running ingest in production

  • 5Durable ingest pipelines
  • 6Re-ingestion, versioning and backfills
  • 7PII detection and redaction
  • 8Ingest evals and the hand-off
CapstoneIngest a case file end to endReference implementation

Module 1 · Reading real-world documents · Lesson 3

Tables, plans and handwriting

The three kinds of content every parser finds hardest in a real case file, how to represent each faithfully, and the checks and review routes that catch what parsers get wrong.

75 min 1 video 3 exercises 6-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvOCR and PDF parsing: Tesseract and Docling

By the end of this lesson you can

  • Choose a table representation that preserves merged cells and multi-page tables, and verify extracted tables with arithmetic invariants
  • Explain what a plan or drawing can and cannot tell an agent, and cross-check its references against the text with simple computer vision
  • Design handwriting and checkbox extraction with explicit illegible and ambiguous states
  • Compute the review rate and residual error of a two-reader agreement check, and state its independence assumption

On this page

  • Intuition: three kinds of meaning that aren't in the words
  • Tables
  • Where they appear
  • Representing them
  • How table extraction goes wrong
  • Verifying with arithmetic
  • Title plans
  • What the plan is
  • What ingest should and shouldn't extract
  • Classical vision beats the VLM here
  • Handwriting and checkboxes
  • Where it appears
  • How well models read it
  • Model the ambiguity explicitly
  • Two-reader agreement
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: three kinds of meaning that aren't in the words
  2. 02Tables
  3. 03Title plans
  4. 04Handwriting and checkboxes
  5. 05Connections
  6. 06Summary

Sources & further reading

  • Image-based table recognition: data, model, and evaluationPaper · Zhong, ShafieiBavani, Jimeno Yepes · IBM Research · 2019ECCV 2020. Introduces PubTabNet and the TEDS metric (tree edit distance on the table's HTML), which is still how table structure is scored on OmniDocBench. Section 3 explains why cell-adjacency metrics miss structural errors.
  • TableFormer: Table Structure Understanding with TransformersPaper · Nassar, Livathinos, Lysak, Staar · IBM Research · 2022CVPR 2022. The table-structure model inside Docling. It predicts structure and cell boxes, then takes the cell text from the PDF's text layer where possible, a useful hybrid pattern.
  • PubTables-1M: Towards comprehensive table extraction from unstructured documentsPaper · Smock, Pesala, Abraham · Microsoft · 2021CVPR 2022. A million annotated tables and a careful treatment of header and spanning-cell ambiguity. Read the introduction for why "ground truth" for tables is itself hard.
  • TrOCR: Transformer-based Optical Character Recognition with Pre-trained ModelsPaper · Li et al. · Microsoft Research · 2021AAAI 2023. The transformer encoder-decoder approach to handwriting recognition that current document VLMs generalise. Good background on why line-level handwriting is a separate problem from printed OCR.
  • How to read a title planLab research · HM Land RegistryRed edging, colour references, and the warning that the red edging does not show the exact legal boundary. The domain facts behind the plan section.
  • Vision (Claude API docs)Docs · AnthropicImage token costs, resolution limits and the stated limitations (approximate spatial reasoning and counting) that shape how you use a VLM on plans.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 6 more sections
  • 3 hands-on exercises
  • A 6-question quiz
  • Progress, quiz scores and bookmarks