MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / puncRemove

Function puncRemove

union/Santos/expandSearch.py:9–19  ·  view source on GitHub ↗
(stringList)

Source from the content-addressed store, hash-verified

7import re
8
9def puncRemove(stringList):
10 output = []
11 for item in stringList:
12 st = ""
13 for sym in item:
14 if sym not in string.punctuation:
15 st = st + sym
16 else:
17 st = st + " "
18 output.append(st)
19 return output
20
21def removeStringPunctuations(string):
22 string = re.sub(r'[^\w]', ' ', string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected