This is a implementation of Twitter/Cornell-Movie Chatbot Tinu . A sequence2sequence chatbot implementation with TensorFlow 1.10 . I just use 10% data of full dataset. you can use full dataset.Then you need to read full article.
- tensorflow - 1.10
- numpy
- pyttsx3
- pypiwin32
-
Install Prerequisites
pip install -r requirements.txt
-
Create dataset
python final_data.py
-
Train Model
python train.py
-
Test Model
python test_model.py
You can add more frequently asked questions and answers on a text file under the store folder.
Using a big Dataset you need to create your dataset using this steps and then follow the earlier instruction for training and testing
-
Download Twitter/Cornell-Movie Dataset link
-
Create a folder named raw_data and paste unzipped data there.
-
Run
python data.py
-
Run
python prep_data.py
-
Run
python final_data.py
Cost or loss will be saved in a loss file named log.txt
you :: what is your name
Tinu :: my name is tinu
You :: who are you
Tinu :: a sequence2sequence chatbot
You :: how are you
Tinu :: do you know who that is .
To make the chatbot usefull use a big dataset and train the model for a long time