SHARE
TWEET

Untitled

a guest Jul 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from gensim.scripts.glove2word2vec import glove2word2vec
  2. glove2word2vec(glove_input_file="glove.42B.300d.txt", word2vec_output_file="gensim_glove_vectors.txt")
  3.  
  4. from gensim.models.keyedvectors import KeyedVectors
  5. glove_model = KeyedVectors.load_word2vec_format("gensim_glove_vectors.txt", binary=False)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top