Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/AgentTuning
/ remove_punc
Function
remove_punc
eval_heldout/rewoo/utils/Evaluator.py:28–30 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
26
return
" "
.join(text.split())
27
28
def
remove_punc(text):
29
exclude = set(string.punctuation)
30
return
""
.join(ch
for
ch in text
if
ch not in exclude)
31
32
def
lower(text):
33
return
text.lower()
Callers
1
normalize_answer
Function · 0.70
Calls
1
join
Method · 0.80
Tested by
no test coverage detected