Spanwatch
Reconstructs the human reading order of a laid-out document from text block bounding boxes, ensuring a deterministic fallback when language models are unavailable.
Spanwatch is a robust document AI tool designed to accurately reconstruct the reading order of text blocks within laid-out documents. Unlike simple sorting methods, it employs a sophisticated recursive XY-cut algorithm to understand complex page structures, such as multi-column layouts and headers. While it can optionally integrate with language models for refined ordering, its core geometric computation guarantees a deterministic and reliable result even without any model, API key, or network access. This ensures consistent performance and provides a crucial fallback mechanism for document processing pipelines, recording which method was used for auditability.