MCPcopy
hub / github.com/SqueezeAILab/LLMCompiler / remove_articles

Function remove_articles

src/utils/evaluation_utils.py:9–10  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

7
8def normalize_answer(s):
9 def remove_articles(text):
10 return re.sub(r"\b(a|an|the)\b", " ", text)
11
12 def white_space_fix(text):
13 return " ".join(text.split())

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected