MCPcopy Index your code
hub / github.com/clips/pattern / strip_punctuation

Function strip_punctuation

pattern/text/__init__.py:70–71  ·  view source on GitHub ↗
(s, punctuation=set(punctuation))

Source from the content-addressed store, hash-verified

68 Punctuation marks are stripped from words.
69 """
70 def strip_punctuation(s, punctuation=set(punctuation)):
71 return [w for w in s if (isinstance(w, Word) and w.string or w) not in punctuation]
72 if n <= 0:
73 return []
74 if isinstance(string, basestring):

Callers 1

ngramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…