分层统计示例
分层统计示例
stats = {"full": 0, "partial": 0, "none": 0}
for sent in split_sentences(answer):
label = judge_attribution(sent, chunks) # full / partial / none
stats[label] += 1
print(stats) # 关注 none 比例与原因样例数字、条件、时间限定的错误最容易出现在“部分支撑”:引用存在但数值被改写。