TL;DR
This paper introduces a novel pipeline that leverages Vision-Language Models (VLMs) to automatically transcribe, segment, and identify speakers in historical Italian parliamentary records. By combining a layout-aware OCR model with a large-scale general VLM (Qwen2.5-VL-72B), the system achieves a massive ~70% reduction in character error rates compared to traditional Tesseract-based pipelines while robustly linking speakers to official knowledge bases.
What Problem Does This Paper Address?
Parliamentary proceedings are invaluable for tracking long-term political, social, and linguistic shifts. In Italy, these records span nearly two centuries. However, the vast majority of historical proceedings exist only as scanned physical documents.
Digitizing them accurately is a nightmare for traditional Optical Character Recognition (OCR) systems due to:
- Complex Layouts: Multi-column formats that confuse standard reading-order algorithms.
- Degraded Print Quality: Faded ink, non-standard historical typefaces, and paper aging, particularly in pre-WW2 documents.
- Brittle Speaker Attribution: Typographic conventions for indicating who is speaking vary wildly across different eras and legislatures. Rule-based text matching frequently fails when a speaker is referred to only by their last name, an institutional role (e.g., "MINISTER OF FINANCE"), or when multiple politicians share a surname.
Methods
The authors propose a six-stage pipeline that shifts the paradigm from rigid, rule-based text extraction to end-to-end visual and semantic reasoning.
- Document Acquisition: Retrieves official PDF scans of parliamentary sessions.
- OCR Extraction: Uses
dots.ocr, a specialized, layout-focused VLM, to extract raw text while strictly preserving the logical reading order across columns. - Semantic Labelling: The raw text and the original page image are fed into
Qwen2.5-VL-72B. Guided by a structured prompt and a one-shot example, the model segments the page into functional elements (text,page-header,note,table) and extracts the raw speaker names. - Document Post-Processing: Resolves page-boundary artifacts like word hyphenations and implements a backward-looking speaker continuity inference mechanism to correctly attribute multi-page speeches to the active speaker.
- Entity Retrieval: Queries the official Italian Chamber of Deputies knowledge base via SPARQL to fetch a list of all active parliamentarians and their specific roles on the exact date of the session.
- Speaker Matching: Runs a multi-strategy fuzzy matching cascade (token ratios, abbreviated name handling, contextual mentions, and vowel-weighted edit distance) to link the extracted speaker text to a unique canonical URI.
Datasets
The pipeline was evaluated using the benchmark dataset released by IPSA (a prominent baseline system for Italian parliamentary corpus construction).
- The dataset consists of 60 scanned historical pages paired with meticulous manual ground-truth transcriptions.
- The pages span a wide historical range from 1848 to 1996, capturing diverse typographic styles and document qualities.
- For the speaker tagging task, the evaluation was focused on the 29 Chamber of Deputies pages where session date metadata could be reliably parsed.
Key Insights and Ideas
- The Power of Hybrid VLMs: Specialized OCR models excel at spatial layout parsing, but general-purpose large VLMs possess the deep semantic context needed to clean up typos, understand historical context, and infer implicit speakers. Combining them yields compounding benefits.
- Historical Robustness: Traditional OCR pipelines degrade significantly when processing older, lower-quality documents (pre-WW2). The VLM-based approach, however, demonstrated remarkably stable performance across all eras, proving highly resilient to physical document degradation.
- Granularity Trade-offs: The VLM was so precise at segmenting text that it occasionally split continuous speeches when interrupted by parenthetical notes (e.g., "[Hilarity in the room]"). While accurate, this stricter segmentation actually penalized the system's precision score against the coarser ground-truth annotations.
Key Results
OCR Performance
The combination of dots.ocr and Qwen-VL dramatically outperformed the Tesseract baseline used by IPSA:
- Character Error Rate (CER): Dropped from 0.030 to 0.009 (a ~70% relative error reduction).
- Word Error Rate (WER): Dropped from 0.071 to 0.024 (a ~66% relative error reduction).
Speaker Tagging
The pipeline achieved a higher global F1 score of 0.925 (compared to IPSA's 0.909). This improvement was heavily driven by a massive leap in Recall (0.970 vs. 0.880), proving that the VLM successfully caught obscure or context-dependent speaker transitions that rule-based systems missed entirely.
Limitations and Future Work
- Isolated Page Evaluation: Because the benchmark dataset consists of fragmented, isolated pages rather than complete sequential documents, the pipeline's cross-page speaker continuity inference could not be fully utilized or evaluated.
- Presiding Officer Heuristics: Identifying the session president normally relies on reading the first page of a document. On isolated middle pages, the system had to rely on a legislature-based heuristic, which is prone to error during mid-term leadership changes.
- Resource Intensity: Running massive 72B parameter VLMs requires substantial GPU compute resources, making it significantly more expensive than traditional lightweight OCR engines.
Future Work: The authors are currently preparing the public release of a newly processed, structured dataset spanning the foundational historical period of 1848 to 1948.
Summary updated