File size: 409 Bytes
8619a66
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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')}")