chore: backup before code cleanup

Backup commit before executing remove-unused-code proposal.
This includes all pending changes and new features.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
egg
2025-12-11 11:55:39 +08:00
parent eff9b0bcd5
commit 940a406dce
58 changed files with 8226 additions and 175 deletions

View File

@@ -335,6 +335,14 @@ class OCRPipeline(ProcessingPipeline):
processing_time = time.time() - start_time
# Debug: Check if ocr_result has rebuild_stats
if 'enhanced_results' in ocr_result:
for page_result in ocr_result['enhanced_results']:
for elem in page_result.get('elements', []):
if elem.get('type') == 'table' or (hasattr(elem.get('type'), 'value') and elem.get('type').value == 'table'):
has_rebuild = 'rebuild_stats' in elem
logger.info(f"[ORCHESTRATOR] Before converter - Table {elem.get('element_id')}: has rebuild_stats={has_rebuild}")
# Convert to UnifiedDocument
unified_doc = self.converter.convert(
ocr_result,