codekansas / keras-language-modeling

:book: Some language modeling tools for Keras
https://codekansas.github.io/language
MIT License
658 stars 171 forks source link

Complaint about no shape when using models saved from Genism #24

Open wailoktam opened 7 years ago

wailoktam commented 7 years ago

Hi, I am trying your work on different data sets, such as the WikiQA. So I think I need to retrain word2vec weights and change the line: 'initial_embed_weights': np.load('word2vec_100_dim.embeddings'). But when I save the model I get from Gensim and put its name within the np.load() brackets. I get an error message saying that my model file has no shape. Am I saving and using the wrong file? I did a model.save in Gensim.