-
Go to a folder which contains utf-8 text files that you plan to train the bot with, and copy the path of the folder the text files are stored in.
-
Go to
chatbot/polls/views.py
and replace the pathname inos.listdir(pathname)
with the one you've copied previously.
-
Open Terminal and
cd
to thechatbot
folder. -
Run
python manage.py runserver
.
This trains the bot with the text files you have provided and runs the chatbot locally.
- Open a browser and go to
localhost:8080/polls/newgetmail
Tadah!! You have successfully ran the Django based Chatbot
-
Train the chatbot with a larger dataset (with more text files)
-
Remove the Machine Learning Chatbot and replace it with your own (look at
views.py
) -
Add/ Remove/ Modify links of the chatbot