MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / remove_punc

Function remove_punc

utils/eval_util.py:40–42  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

38
39
40def remove_punc(text):
41 exclude = set(puncs)
42 return ''.join(ch for ch in text if ch not in exclude)
43
44
45def lower(text):

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected