flask-ocr-api / scratch_eval.py
vamsi1103's picture
Upload 34 files
8619a66 verified
Raw History Blame Contribute Delete
409 Bytes
import json
with open("scratch_paired_rows.txt", "r", encoding="utf-8") as f:
lines = f.readlines()
with open("full_prices.json", "r", encoding="utf-8") as f:
ground_truth = json.load(f)
print(f"Total ground truth items: {len(ground_truth['items'])}")
for i, item in enumerate(ground_truth['items'][:10]):
print(f"GT {i+1}: {item['name']} -> {item.get('rate') or item.get('available_rates')}")