Project website: https://ted-the-deep-learning-bot.herokuapp.com/
Ted is a multipurpose chatbot made using Python3, who can chat with you and help in performing daily tasks. It uses NLP and Deep-Learning to analyse the user's message, classify it into the a broader category and then reply with a suitable message or the required information. It is hosted using flask and is available on heroku at the link specified above.
First, the user message is lemmatized and pre-processed, before passing it to the deep-learning model used, an Artificial Neural Network with Softmax, to specify the query category which achieves an accuracy of over 98%.
Home Page:
Chat Screen:
Among other things, the bot can:
- Chat with you
- Help you with Google Search
- Get the weather of any city
- Get the top trending news in India at that moment
- Get the top ten globally popular songs at that moment
- Set a timer for you and so on
The dataset used for training was self-populated and is stored as Intents.json in chatbot_codes. The data from this file was used to create the pickle files for words and classes. The pre-trained model with weights is available as mymodel.h5 in the same file.
You can chat with Ted at this link
To run it locally on your system, follow these steps:
- Clone this repository onto your system. On Command Prompt, run the following command:
git clone https://github.com/Karan-Malik/Chatbot.git
- Change your directory to Chatbot:
cd Chatbot
- Make sure you have all the required libraries listed in requirements.txt. In case any of the libraries are missing, install them using pip. Type this command into your Command Prompt, replacing 'Your-library-name' by the required library name:
pip install Your-library-name
- Then run the follwing commands to run the application:
set FLASK_APP=chatbot.py
flask run
- Enter the url provided after running the previous commands into your web browser
Ted is now ready to chat!