2.5 · Lesson

Parsing libraries

In the previous lesson, you saw how Docling can extract structured fields directly from PDFs using layout analysis. But your Module 1 pipeline already produced .txt files.

In this lesson, you'll use a standard email parser to parse those text files — and when it fails, reconstruct the structure it needs.