Skip to content

Commit

Permalink
Update word2vec_features.py
Browse files Browse the repository at this point in the history
referencing SLIM version of word2vec
  • Loading branch information
johnjoo1 authored Dec 12, 2018
1 parent d3e1bcc commit a8fa29f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/word2vec_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


from gensim import models
model2 = models.KeyedVectors.load_word2vec_format('data/external/GoogleNews-vectors-negative300.bin', binary=True)
model2 = models.KeyedVectors.load_word2vec_format('data/external/GoogleNews-vectors-negative300-SLIM.bin', binary=True)


from nltk.tokenize import RegexpTokenizer
Expand Down Expand Up @@ -71,4 +71,4 @@
with open('models/mlb.pkl','wb') as f:
pickle.dump(mlb,f)

os.remove("data/external/GoogleNews-vectors-negative300.bin")
os.remove("data/external/GoogleNews-vectors-negative300-SLIM.bin")

0 comments on commit a8fa29f

Please sign in to comment.