MCPcopy Create free account
hub / github.com/google-research/language / remove_punc

Function remove_punc

language/orqa/utils/eval_utils.py:35–37  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

33 return " ".join(text.split())
34
35 def remove_punc(text):
36 exclude = set(string.punctuation)
37 return "".join(ch for ch in text if ch not in exclude)
38
39 def lower(text):
40 return text.lower()

Callers 1

normalize_answerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…