Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gensim.scripts.glove2word2vec import glove2word2vec
- glove2word2vec(glove_input_file="glove.42B.300d.txt", word2vec_output_file="gensim_glove_vectors.txt")
- from gensim.models.keyedvectors import KeyedVectors
- glove_model = KeyedVectors.load_word2vec_format("gensim_glove_vectors.txt", binary=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement