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

Function white_space_fix

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

Source from the content-addressed store, hash-verified

10 return re.sub(r"\b(a|an|the)\b", " ", text)
11
12 def white_space_fix(text):
13 return " ".join(text.split())
14
15 def remove_punc(text):
16 exclude = set(string.punctuation)

Callers 1

normalize_answerFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected