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

Function remove_punc

tasks/superglue/evaluate.py:26–28  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

24 return ' '.join(text.split())
25
26 def remove_punc(text):
27 exclude = set(string.punctuation)
28 return ''.join(ch for ch in text if ch not in exclude)
29
30 def lower(text):
31 return unidecode.unidecode(text.lower())

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected