Files
Aislo/resources/tester/scratch/check_embedded_tables.py
T

12 lines
366 B
Python

import json, sys
sys.stdout.reconfigure(encoding='utf-8')
with open('scratch/all_candidates_collapsed_ex8.json', 'r', encoding='utf-8') as f:
data = json.load(f)
embedded = [d for d in data if d.get('is_embedded_table')]
print(f"Total embedded table rows: {len(embedded)}")
for e in embedded:
print(f"{e['file']} L{e['line']}: {e['cell_snippet'][:100]}")