MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / compute_exact

Function compute_exact

utils/eval_util.py:53–54  ·  view source on GitHub ↗
(a_gold, a_pred)

Source from the content-addressed store, hash-verified

51
52
53def compute_exact(a_gold, a_pred):
54 return int(normalize_answer(a_gold) == normalize_answer(a_pred))
55
56
57def single_ans_em(pred, gold):

Callers 1

single_ans_emFunction · 0.85

Calls 1

normalize_answerFunction · 0.85

Tested by

no test coverage detected