This commit is contained in:
Crista Lopes
2013-12-29 21:35:15 -08:00
parent c2196f57da
commit 2d41d53644
2 changed files with 5 additions and 4 deletions

View File

@@ -9,5 +9,6 @@ def extract_words(path_to_file):
with open('../stop_words.txt') as f:
stop_words = f.read().split(',')
stop_words.extend(list(string.ascii_lowercase))
return [w for w in word_list if not w in stop_words]