MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / strip_punctuation

Function strip_punctuation

numpy_ml/preprocessing/nlp.py:167–169  ·  view source on GitHub ↗

Remove punctuation from a string

(line)

Source from the content-addressed store, hash-verified

165
166
167def strip_punctuation(line):
168 """Remove punctuation from a string"""
169 return line.translate(_PUNC_TABLE).strip()
170
171
172#######################################################################

Callers 3

_trainMethod · 0.90
tokenize_whitespaceFunction · 0.85
tokenize_charsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected