Chatbot is a Python project in which I have used a deep learning techniques. The chatbot will be trained on the dataset which contains categories (intents), pattern and responses. I have used a special recurrent neural network (LSTM) to classify which category the user’s message belongs to and then we will give a random response from the list of responses.
Use the package manager pip to install tensorflow, keras, pickle and nltk.
pip install tensorflow, keras, pickle, nltk
- First, train the model using the command in the terminal:
python train_chatbot.py
- If you don’t see any error during training, you have successfully created the model. Then to run the app, run the second file.
python chatgui.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.