MCPcopy 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
49def normalize_answer(s):
50 return white_space_fix(remove_articles(remove_punc(lower(_normalize(s)))))
51
52
53def compute_exact(a_gold, a_pred):

Callers 1

compute_exactFunction · 0.85

Calls 5

_normalizeFunction · 0.90
white_space_fixFunction · 0.85
remove_articlesFunction · 0.85
remove_puncFunction · 0.85
lowerFunction · 0.85

Tested by

no test coverage detected