Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to load google's pre-trained word2vec model in python

$
0
0

@vikas_10 wrote:

Hello everyone,
I am currently working on NLP. I want to use google's pre-trained word2vec model. I have downloaded the necessary model. Finally, I wrote the following code in my ipython notebook to load the model
from gensim.models import Word2Vec
Word2Vec.load_word2vec_format('GoogleNews-vectors-negative300.bin', binary=True, norm_only=True)

'GoogleNews-vectors-negative300.bin is the name of the model file. On running it, I am getting following error

TypeError: load_word2vec_format() got an unexpected keyword argument 'norm_only'

Can anyone help me to figure out what's wrong and how to fix it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles