MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / normalize_answer

Function normalize_answer

scripts/evaluate/evaluate.py:216–219  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

214
215 elif mode in ['math', 'choose']:
216 def normalize_answer(text):
217 text = text.lower()
218 text = " ".join(text.strip().split())
219 return text
220 normalized_pred_answer = normalize_answer(pred_answer_new)
221 normalized_ground_truth = normalize_answer(labeled_answer)
222

Callers 1

evaluate_predictionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected