1- # -*- coding: utf-8 -*-
2- """SmartBot.ipynb
3-
4- Automatically generated by Colaboratory.
5-
6- Original file is located at
7- https://colab.research.google.com/drive/10Z5B-2_WyGZsZewgeLtVgKWVppTZAyAs
8- """
91
102# Description: This is a 'self learning' chatbot program
113
124"""
13- In this video I will show you how to build your very own chat bot using the Python programming language and Machine Learning!
5+ I will show you how to build your very own chat bot using the Python programming language and Machine Learning!
146More specifically I want to create a "Doctor Chat Bot On Chronic Kidney Disease",
157meaning I can ask this chat bot about chronic kidney disease, and it can come up with a reasonable response.
168
179A chat bot is software that conducts conversations.
1810There are broadly two variants of chat bots: Rule-Based and Self Learning.
1911A Rule-Based chat bot is a bot that answers questions based on some rules that it is trained on,
2012while a Self Learning chat bot is a chat bot that uses some Machine Learning based technique to chat.
21- We will use a little bit of both in this video.
22-
23- and
13+ We will use a little bit of both .
2414
2515Your kidneys filter wastes and excess fluids.
2616Chronic kidney disease, also called chronic kidney failure, describes the gradual loss of kidney function.
2717
2818"""
2919
30- #Resources: https://github.com/randerson112358/Building-a-Simple-Chatbot-in-Python-using-NLTK
20+ #Resources:
21+ # (1) https://github.com/randerson112358/Building-a-Simple-Chatbot-in-Python-using-NLTK
22+ # (2) https://medium.com/datadriveninvestor/build-your-own-chat-bot-using-python-95fdaaed620f
3123
3224pip install nltk
3325
@@ -149,4 +141,4 @@ def response(user_response):
149141 sent_tokens .remove (user_response ) #Remove the users response from the list
150142 else : #Else the users response was bye
151143 flag = False #Set the flag to false to end the conversation / while loop
152- print ("DOCBOT: Chat with you later !" ) #print Chat with you later ! to the screen
144+ print ("DOCBOT: Chat with you later !" ) #print Chat with you later ! to the screen
0 commit comments