import json

def check_judge_label_consistency():
    # 在这里手动设置输入 JSON 文件路径
    file_path =   # 例如: "data.json"

    # 加载 JSON 数据
    with open(file_path, 'r', encoding='utf-8') as f:
        data = json.load(f)

    same_count = 0
    diff_count = 0

    # 遍历每一条数据
    for item in data:
        judge_result = item.get("judge result", "").strip()
        label = item.get("label", "").strip()

        if judge_result == label:
            same_count += 1
        else:
            diff_count += 1

    # 打印结果
    print(f"一致的数量: {same_count}")
    print(f"不一致的数量: {diff_count}")

# 调用函数
check_judge_label_consistency()
