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

Function remove_punc

eval_heldout/hotpotQA/src/agent_arch.py:69–71  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

67 return " ".join(text.split())
68
69 def remove_punc(text):
70 exclude = set(string.punctuation)
71 return "".join(ch for ch in text if ch not in exclude)
72
73 def lower(text):
74 return text.lower()

Callers 1

normalize_answerFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected