MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / white_space_fix

Function white_space_fix

test/general/lm_eval/tasks/qasper.py:52–53  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

50 return re.sub(r"\b(a|an|the)\b", " ", text)
51
52 def white_space_fix(text):
53 return " ".join(text.split())
54
55 def remove_punc(text):
56 exclude = set(string.punctuation)

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected