-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: name 'embedding_matrix' is not defined #18
Comments
Hi Vladimir, If this line has been processed, it's because you don't have the weights_file, see the code:
I suggest you download the net weights, "my_model_weights20.h5", which can be found here |
yes, thanks, I collected my own corpus and retrained it, the training failed, that's why I didn't have this file and the respective error |
Okay, so you have to download the Glove folder 'glove.6B' from here and include this folder in the directory of the chatbot. |
In conversation.py
Shared_Embedding = Embedding(output_dim=word_embedding_size, input_dim=dictionary_size, weights=[embedding_matrix], input_length=maxlen_input, name='Shared')
however it produces the error above, should we reimport embeddings?
The text was updated successfully, but these errors were encountered: