Introduction
Tables are a primary medium for presenting structured data in scientific and financial documents. However, their automated extraction remains a significant challenge due to the implicit semantic context and varied layouts that human readers interpret naturally but machines struggle to parse. Existing approaches typically oscillate between brittle, domain-specific automatic systems and labor-intensive manual extraction. This paper proposes a "middle ground": a semi-automatic system that learns from minimal expert feedback to automate the remaining extraction tasks.
The Shift-Based Extraction Framework
The core of the proposed system is the Shift Approach, which treats table extraction as a sequence of user-driven steps. By observing a small number of manual mappings, the system identifies structural patterns—or "offsets"—to predict subsequent data points.
The Shift Concept
A "shift" is defined as the row and column offset between two sequential user actions. For example, if a user maps cell A4 to a "Company" attribute and then maps A5 to the same attribute, the system identifies a 1-row downward shift.
Phases of Operation
The system operates in three distinct phases based on the availability of user input:
- Regular Phase: Triggered after two or more manual mappings. The system calculates the explicit shift and propagates it across the table.
- One User Feedback Phase: With only one mapping, the system "guesses" potential shifts by consulting historical data or iterating through common offsets.
- No User Feedback Phase: The system attempts to match the current table's layout (e.g., colspan, rowspan) against a library of previously processed structures to suggest a starting point.
Heuristics and Semantic Enrichment
To select the most likely "candidate shift," the system employs a linear combination of four heuristic features:
- Average Shift Length: Preference is given to shorter, sequential shifts.
- Offset Consistency: Higher weights are assigned to patterns where cells shift by uniform amounts.
- Text Similarity: Levenshtein distance is used to ensure that shifted cells contain data types similar to the source.
- NER Consistency: A Conditional Random Field (CRF) model identifies entity types (e.g., Date, Organization) to verify that the "shifted" data aligns with the expected attribute type.
Furthermore, the system utilizes regular expressions to handle cell value patterns, enabling the extraction of clean data from noisy strings (e.g., converting "FY 2009" to "2009").
Experimental Evaluation
The prototype was evaluated using a dataset of 30 financial tables and over 150 user feedback sequences. The results demonstrate the effectiveness of the semi-automatic approach:
- Accuracy: In the Regular Phase, the system achieved 74% total accuracy for perfect record prediction.
- Precision and Recall: Individual cell mappings reached 84% precision and 80% recall.
- Efficiency: The "One User Feedback" phase achieved 43% accuracy without history, which surged to 86% when the system leveraged a history of similar table structures.
- Selection Reliability: Once a correct shift was identified, the system's "Shift Chooser" selected it with 94% accuracy.
Conclusion
The "shift approach" effectively leverages the repetitive nature of table layouts. By combining geometric offsets with semantic NLP verification, the system significantly reduces the manual effort required for high-fidelity data extraction. Future work will focus on handling complex cells containing multiple attributes and improving transitions between non-linear table sections.
Summary updated