This Chatbot is a TensorFlow implementation of Seq2Seq Mode. It make use of a seq2seq model RNN for sentence predictions. The chatbot is trained on Cornell Movie Dialogs Corpus on Conversation of lenghth between 5 to 2 words
To run this chabtot you will need:
- Python 3.5
- Tensorflow (1.13.1)
- Numpy
- Flask
- Matplotlib
- Dataset
- First install the required depedencies from
Chat_UI_Web
and runpip install -r requirment.txt
- From the Chat_UI_Web directory run run.py
python run.py
- Open a browser to the URL indicated by the server console, This is typically: http://localhost:5000/
- First install the required depedencies from root directory and run
pip install -r requirment.txt
- From the root directory run
python chat.py
- Batch_size to 128
- Rnn_size to 128
- Embed_size to 128
- Learning_rate to 0.0.1
- Epochs to 500
- Keep_prob to 0.75
To Train Model from Python Console:
- Configure the
config.py
file for desired training hyperparameters - Run train.py
python train.py
- Make sure the datasets should be present in the
datasets
folder
Model was able to train to Accuracy of 62%
and Loss of 19%
and after that it was overfitting
Human: who are you
Bot: girlfriend
Human: who am i
Bot: doctor livingston
Human: where are you from
Bot: southern california
Human: how old are you
Bot: nineteen or
Human: are you a boy
Bot: i am trying
Human: are you a girl
Bot: something like that
Human: do you drink
Bot: no thanks