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')}")