MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / remove_articles

Function remove_articles

eval_heldout/rewoo/utils/Evaluator.py:22–23  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

20
21def normalize_answer(s):
22 def remove_articles(text):
23 return re.sub(r"\b(a|an|the)\b", " ", text)
24
25 def white_space_fix(text):
26 return " ".join(text.split())

Callers 1

normalize_answerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected