Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
def
compute_exact(a_gold, a_pred):
54
return
int(normalize_answer(a_gold) == normalize_answer(a_pred))
55
56
57
def
single_ans_em(pred, gold):
Callers
1
single_ans_em
Function · 0.85
Calls
1
normalize_answer
Function · 0.85
Tested by
no test coverage detected