I am trying to get most probable sequence of word using gensim word2vec model. I have found a pretrained model which provides these files:
word2vec.bin
word2vec.bin.syn0.npy
word2vec.bin.syn1neg.npy
This is my code trying to get the probability of the sentence with this model:
model = model.wv.load(word_embedding_model_path)
model.hs = 1
model.negative = 0
print model.score(sentence.split(" "))
While running this code I am getting this error:
AttributeError: 'Word2Vec' object has no attribute 'syn1'
Can anyone help me figure out how to solve the problem. In general, I want to use some pretrained model to get the probability of sequence of word appearing together.