Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TIGER-AI-Lab/LongRAG
/ normalize_answer
Function
normalize_answer
utils/eval_util.py:49–50 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
47
48
49
def
normalize_answer(s):
50
return
white_space_fix(remove_articles(remove_punc(lower(_normalize(s)))))
51
52
53
def
compute_exact(a_gold, a_pred):
Callers
1
compute_exact
Function · 0.85
Calls
5
_normalize
Function · 0.90
white_space_fix
Function · 0.85
remove_articles
Function · 0.85
remove_punc
Function · 0.85
lower
Function · 0.85
Tested by
no test coverage detected