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



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?


Did you get the reason why is wasn’t loading?