Skip to content

Pawandeep-prog/keras-seq2seq-chatbot-with-attention

Repository files navigation

keras-seq2seq-chatbot-with-attention

It is a seq2seq encoder decoder chatbot using keras and with attention

files

  1. chatbot.py :- This is file to run chatbot using the saved model
  2. ipynb file :- This file is all in one you just need below datasets to run it Hopefully with no errors. it also saves the model in h5 format

thanks to thushv89 https://github.com/thushv89/attention_keras for attention layer all credit for Attention Layer layer class goes him

How to RUN

  1. Run on kaggle : https://www.kaggle.com/programminghut/seq2seq-chatbot-keras-with-attention
  2. use chatbot.py once you ran ipynb file because save model is executed in above ipynb file

Datasets used :

  1. glove6b 50d : https://www.kaggle.com/watts2/glove6b50dtxt
  2. cornell movie : https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html

chatbot.py is the python file to run locally using the saved model.

Sample chat

if you still have queries you may contact me here contact me : facebook : https://m.facebook.com/proogramminghub
twitter : https://twitter.com/programming_hut
github : https://github.com/Pawandeep-prog
discord : https://discord.gg/G5Cunyg
linkedin : https://www.linkedin.com/in/programminghut
youtube : https://www.youtube.com/c/programminghutofficial