Sample-Chatbot Install dependencies
$pip install Flask torch torchvision nltk
Install nltk package
$python
>>> import nltk
>>> nltk.download('punkt')
Modify intents.json
with different intents and responses for your Chatbot
Run
$python train.py
This will dump data.pth file. And then run the following command to test it in the console.
$python chat.py
Now for deployment follow my tutorial to implement app.py
and app.js
.
Youtube Video Reference; https://www.youtube.com/watch?v=a37BL0stIuM