epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Getting vectors from trained model #112

Open Naviden opened 3 years ago

Naviden commented 3 years ago

Hi, I've trained a model using my corpus. I tried different methods to get vectors from this model but it seems there's something wrong with the shape:

# using gensim.models.wrappers.FastText
AssertionError: mismatch between actual weight matrix shape (4007501, 300) and expected shape (4007500, 300)

# using  gensim.models.fasttext.load_facebook_vectors
AssertionError: unexpected number of vectors

# using  gensim.models.fasttext.load_facebook_model
AssertionError: unexpected number of vectors