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

Function remove_punc

eval_heldout/hotpotQA/src/wrappers.py:56–58  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

54 return " ".join(text.split())
55
56 def remove_punc(text):
57 exclude = set(string.punctuation)
58 return "".join(ch for ch in text if ch not in exclude)
59
60 def lower(text):
61 return text.lower()

Callers 1

normalize_answerFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected