Python, NLP, Numpy, Scikit Learn.
filter(self, word): #only keep letters, numbers, and sentence delimiter word = re.sub('[\(\)\.,;:+\--"]', '', word) #remove multiple whitespace word = re.sub(r'\s+', '', word) if not word in stopwords.words("english"): return word.lower() return '' def vocab(self): return