Skip to content

Commit

Permalink
add in stop words
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzaragoza committed Jan 7, 2014
1 parent 884becb commit cbb71f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch03/bagofwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import scipy as sp
from sklearn.feature_extraction.text import CountVectorizer
vectorizer = CountVectorizer(min_df=1) # minimum document frequency
vectorizer = CountVectorizer(min_df=1, stop_words="english") # minimum document frequency

print vectorizer

Expand Down

0 comments on commit cbb71f3

Please sign in to comment.