MCPcopy
hub / github.com/ddbourgin/numpy-ml / remove_stop_words

Function remove_stop_words

numpy_ml/preprocessing/nlp.py:162–164  ·  view source on GitHub ↗

Remove stop words from a list of word strings

(words)

Source from the content-addressed store, hash-verified

160
161
162def remove_stop_words(words):
163 """Remove stop words from a list of word strings"""
164 return [w for w in words if w.lower() not in _STOP_WORDS]
165
166
167def strip_punctuation(line):

Callers 2

tokenize_whitespaceFunction · 0.85
tokenize_wordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected