Skip to content

Commit

Permalink
Update api_nn.py
Browse files Browse the repository at this point in the history
using SLIM word2vec
  • Loading branch information
johnjoo1 authored Dec 12, 2018
1 parent a8fa29f commit cc267dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/api_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Genre_ID_to_name=pickle.load(f)

model_textual = load_model('models/overview_nn.h5')
w2v_model = models.KeyedVectors.load_word2vec_format('data/external/GoogleNews-vectors-negative300.bin', binary=True)
w2v_model = models.KeyedVectors.load_word2vec_format('data/external/GoogleNews-vectors-negative300-SLIM.bin', binary=True)
tokenizer = RegexpTokenizer(r'\w+')
en_stop = get_stop_words('en')
with open('models/mlb.pkl','rb') as f:
Expand Down

0 comments on commit cc267dd

Please sign in to comment.