A simple AI Chatbot implementation using Pytorch and NPL
<a href="https://github.com/mindninjaX/AI-Chatbot/issues">Request Feature</a>
intents.json
with possible patterns and responses and re-run the training.This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
To get started with this project, follow the instructions below:
To run and work with this project you need to have the latest version of Python installed in your system.
Along with Python, we would also need some python modules to work with this project. Check Installation for instructions on same.
git clone https://github.com/mindninjaX/AI-Chatbot
pip install
pip install torch
pip install numpy
pip install nltk
nltk.download()
& run nltk_utlis.py to install Punkt Tokenzier model
import nltk
nltk.download()
Run train.py
to train the chatbot
python train.py
This is create a new file data.pth
which contains the trained data for our chatbot.
Initiate the chatbot! Run chat.py
python chat.py
Raw data is present in intents.json
. Customize this file as per your needs. Just define a new tag
, possible patterns
, and possible responses
for the chat bot. You have to re-run the training whenever this file is modified.
{
"intents": [
{
"tag": "greeting",
"patterns": [
"Hi",
"Hey",
"How are you",
"Is anyone there?",
"Hello",
"Good day"
],
"responses": [
"Hey :-)",
"Hello, thanks for visiting",
"Hi there, what can I do for you?",
"Hi there, how can I help?"
]
},
...
]
}
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Project Link: https://github.com/mindninjaX/AI-Chatbot