Register and get free Certificate for the course: glacad.me/3Hn1pKh Topics Covered 00:00:00 Introduction 00:01:58 Agenda 00:03:57 Did you know? 00:08:24 Introduction to chatbots 00:16:57 Types of chatbots 00:22:11 Top applications of chatbots 00:28:03 Architecture of chatbots 00:33:37 How does a chatbot work? 00:45:12 Hands-on Demo with Python 01:02:58 Summary
Thank you, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
I've been waiting for this, thank you. Is it possible for you to upload one more like this about building your own video calling website (like google meet)
Thank you for the suggestion, we’ll try and look into it! So, subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
hello! thanks for this tutorial. it was very useful. i have 2 errors; please help me out. in the text preprocessing, i am getting error in the very first line and it says that nltk is not defined, but i have imported nltk. the next error is coming in defining the start and end protocol where the control goes to function greet and there the random library is said to be not defined. i have imported both the files. i have checked all the syntactical errors and everything is as same as shown in the video. please help me out. thanks!
Hello Sir, How can i make a chatbot which ask questions and constructs the question based on user response, more like an interview session ? What kind of corpus should i use for this ? It will be really helpful if you can help me out
Hi, This was a great video. Thanks. I would like to know how to put in production I mean how can we use chatbot for different language say Hindi. and if i have a website, how can i integrate this chatbot in Python to my website. Thanks
Thank you for the suggestion, we’ll try and look into it! Alternatively, check out our CZcams video on "Coronavirus Outbreak Prediction using Machine Learning in Hindi" here: czcams.com/video/jLnLfAPL-iY/video.html Subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
Sir I'm getting an issue again and again. My chatbot shows an error when ever I type " What is data science " But if I write " Hi, hello" Then it works! It shows me the error in ( defining conversation start/end protocols) 18th line of code and tells (name 'TfedVectorizer' is not defined.) Please help me out! And thankyou sir for this tutorial ❤
Your stop_words may be inconsistent with your preprocessing. Tokenizing the stop words generated tokens ['ha', 'le', 'u', 'wa'] not in stop_words. warnings.warn('Your stop_words may be inconsistent with ' Getting this error. How to solve it?
Greetings from Great Learning! Check out our CZcams video on "Build your first mobile app in Python | App Development tutorial for Beginners" here: czcams.com/video/_TY9OjROg9U/video.html Subscribe to the channel and hit the bell icon so that you never miss out on such content from us😇
Wow helpful id idea for little project Please dear sir Make a little application in which all content of python will be uses and teach once start to end ..
Thank you for the suggestion, we’ll try and look into it! Alternatively, check out our CZcams video on "Coronavirus Outbreak Prediction using Machine Learning in Hindi" here: czcams.com/video/jLnLfAPL-iY/video.html Subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
Hey, am having problems with that code, am getting 2 errors; line 18 "print(response(user_response)) and line 6 "return LemTokens(nltk.word_tokenize(text.lower(). translate(remove_punct_dict))), here it says 'remove_punct_dict' is not defined....help me out
You're welcome, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
Thank you, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
You're welcome, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
🔥🔥 Visit Great Learning Academy to learn from any of our 300+ free courses and get your free certificate of completion, Register Now: glacad.me/FreeCourses_1000Hours 🔥🔥
Brother you are amezing i watched full video and i completely understood what is Chatbot ...you are explaining in a simple language which is more benificial for me... Hats off bro🙌🙌✌️
Register and get free Certificate for the course: glacad.me/3Hn1pKh
Topics Covered
00:00:00 Introduction
00:01:58 Agenda
00:03:57 Did you know?
00:08:24 Introduction to chatbots
00:16:57 Types of chatbots
00:22:11 Top applications of chatbots
00:28:03 Architecture of chatbots
00:33:37 How does a chatbot work?
00:45:12 Hands-on Demo with Python
01:02:58 Summary
import numpy as np
import nltk
import string
import random
f=open('chatbot.txt','r',errors='ignore')
raw_doc=f.read()
raw_doc=raw_doc.lower()
nltk.download('punkt')
nltk.download('wordnet')
sent_tokens= nltk.sent_tokenize(raw_doc)
word_tokens= nltk.word_tokenize(raw_doc)
sent_tokens[:2]
word_tokens[:2]
lemmer = nltk.stem.wordNetLemmatizer()
def LemTokens(tokens):
return[lemmer.lemmatize(token) for token in tokens]
remove_punct_dict = dict((ord(punct),None)for punct in string.punctuation)
def LemNormalize(text):
return LemTokens(nltk.word_tokenize(text.lower().translate(remove_punct_dict)))
GREET_INPUTS =("hello","hii","greetings","sup","what'sup","hey",)
GREET_RESPONSES =["hii","hey","nods","hii there","hello","how can i help u?"]
def great(sentence):
for word in sentence.split():
if word.lower() in GREET_INPUTS:
return random.choice(GREET_RESPONSES)
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
def response(user_response):
robo1_response=''
TfidfVec = TfidfVectorizer(tokenizer=LemNormalize,stop_words='english')
tfidf = TfidfVec.fit_transform(sent_tokens)
vals = cosine_similarity(tfidf[-1],tfidf)
idx = vals.argsort()[0][-2]
flat = vals.flatten()
flat.sort()
req_tfidf = flat[-2]
if(req_tfidf==0):
robo1_response=robo1_response+"I am sorry!I dont understand u"
return robo1_response
else:
robo1_response = robo1_response+sent_tokens[idx]
return robo1_response
flag=True
print("Bot:My name is Harry.Lets have a conversation! If you want to exit ant time,just type Bye!!)
while(flag==True):
user_response=input()
user_response=user_response.lower()
if(user_response!='bye'):
if(user_response=='thanks' or user_response=='thank you'):
flag=False
print("Bot:You are welcome..")
else:
if(greet(user_response)!=None):
print("Bot:"+greet(user_response))
else:
sent_tokens.append(user_response)
word_tokens=word_tokens+nltk.word_tokenize(user_response)
final_words=list(set(word_tokens))
print("Bot:",end="")
print(response(user_response))
sent_tokens.remove(user_response)
else:
flag=False
print("Bot:Goodbye")
Respected Sir....Syntax error for 'else' showing....what should be the correction??
🔥 Get your free certificate of completion for the Artificial Intelligence with Python Course, Register Now: glacad.me/3JnI7pB
Great Sir Thank you ❤️
Sir i have one question can i use your videos for my website? Please Allow me
@@hammadawan9116 he would of course refuse. It's not right to take somebody else's work
@@vkgautam7980 yes you r right brother 👍
8г888г88б88г8гг⁸г88г8гг8г
Amazing and great video in terms of learning new things, need more sessions like these which may help the Learners.
Thank you, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
I've been waiting for this, thank you. Is it possible for you to upload one more like this about building your own video calling website (like google meet)
Thank you for the suggestion, we’ll try and look into it! So, subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
@@greatlearning this is a bot
Very well explained! Loved the technical knowledge provided by the video.
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
Extremely beautifully explained and recorded !!!
Hats off to your dedication !!!
where is the chatbot in action
hello! thanks for this tutorial. it was very useful. i have 2 errors; please help me out. in the text preprocessing, i am getting error in the very first line and it says that nltk is not defined, but i have imported nltk. the next error is coming in defining the start and end protocol where the control goes to function greet and there the random library is said to be not defined. i have imported both the files. i have checked all the syntactical errors and everything is as same as shown in the video. please help me out. thanks!
Incredible video. Great historical perspective. Thank you!
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
Hello Sir, How can i make a chatbot which ask questions and constructs the question based on user response, more like an interview session ? What kind of corpus should i use for this ?
It will be really helpful if you can help me out
You should venture more using NLTK library for this.
Thank you sir. I showed your own project for my end term. You were very helpful
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
bro can you please share this project ?
please give us source code to do the same
Hi, This was a great video. Thanks. I would like to know how to put in production I mean how can we use chatbot for different language say Hindi. and if i have a website, how can i integrate this chatbot in Python to my website.
Thanks
Can we have an implementation of epilepsy seizure detection and prediction project demo please?
Thank you for the suggestion, we’ll try and look into it! Alternatively, check out our CZcams video on "Coronavirus Outbreak Prediction using Machine Learning in Hindi" here: czcams.com/video/jLnLfAPL-iY/video.html Subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
Amazing vide, I have learnt a lot from this video. The instructor is awesome. Thank you
Sir I'm getting an issue again and again.
My chatbot shows an error when ever I type " What is data science " But if I write " Hi, hello" Then it works!
It shows me the error in ( defining conversation start/end protocols) 18th line of code and tells (name 'TfedVectorizer' is not defined.)
Please help me out!
And thankyou sir for this tutorial ❤
You have a small typo - It is not TfedVectorizer, it is TfidfVectorizer. The video has the correct syntax. Please refer to the demo.
Your stop_words may be inconsistent with your preprocessing. Tokenizing the stop words generated tokens ['ha', 'le', 'u', 'wa'] not in stop_words.
warnings.warn('Your stop_words may be inconsistent with '
Getting this error. How to solve it?
Please share the code ad data. Thanks.
great staff ...
how do i create a chatbot linked or trained with data from a csv file ?
Very well explained!! Thank you!
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
Sir it's an amazing video ! ,But can I use my own terms instead of hi ,hello ,in input?
ofc
such an amazing lecture !! it was really fun to learn
just a few minutes in , so well explained. So clean. SUBBED AND LIKED!
I got holiday homework to build chatbot using AI app or software...
Thankyou....bro
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
Did you get the out put??
@@khushimahajan5971 not yet....
@@priyanshisharma8792 Have you made chatbot ?
@@priyanshisharma8792 please reply
how we can make this chatbox precisely? means i need exact reply
Please make video on kivy python full course
Greetings from Great Learning! Check out our CZcams video on "Build your first mobile app in Python | App Development tutorial for Beginners" here: czcams.com/video/_TY9OjROg9U/video.html Subscribe to the channel and hit the bell icon so that you never miss out on such content from us😇
I have already seen that video, but I want full course on kivy python app development.
Thank you sir for this explanation.
hey where I get this code? you've not mentioned the code in your description
yes i also need the code
@@rakshitashetty7461 did you get the code
Very informative and useful!
Wow helpful id idea for little project
Please dear sir
Make a little application in which all content of python will be uses and teach once start to end ..
Please share the python notebook used, Great video
Nice video !! Great explanation!!!
very well explanation, thorough knowledge... so my question is do we easily get syntax to make our own chatbots
Incredible!Incredible!
Can we have a project on malaria detection using machine learning please this week
Thank you for the suggestion, we’ll try and look into it! Alternatively, check out our CZcams video on "Coronavirus Outbreak Prediction using Machine Learning in Hindi" here: czcams.com/video/jLnLfAPL-iY/video.html Subscribe to our channel NOW and hit the bell icon so that you never miss an update from us😇
@@greatlearning i am sure this thing is also a bot i am srs and sure
Could we use it as final year project
Hey, am having problems with that code, am getting 2 errors; line 18 "print(response(user_response)) and line 6 "return LemTokens(nltk.word_tokenize(text.lower(). translate(remove_punct_dict))), here it says 'remove_punct_dict' is not defined....help me out
Are you used any cloud in this?
what if you wana add another input like "How are you" with a corresponding response?
Could you please provide source code?
Thanks for sharing
You're welcome, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
Hello Team, Do you have a playbook location to download the code
For Resource omw-1.4 not found,
use the following command below the "nltk.download('wordnet')"
>> nltk.download('omw-1.4')
Sir can you pls tell me how can i add this chatbot to my website
How to trained our own data. How much time it will take to trained
Can I get the link to colab notebook in the video?
Thank you 💕 it's helped me alot
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
I want help. My chatbot is not replying as trained. How to write Questions and answers in .txt file ? Please reply.
Thankyou for this but how to train your chat bot to give the perfect answer ?
Have to use AI then!
Python is a non venomous snake
🤣
Sir need help,have to make chatbot where user can type questions and chatbot will give ans it live chat nd chatbot can give different ans..
Video is amazing but I'm getting error in strt end protocols like greet not defined please help me sir
Will this code work in Jupyter Notebook
Please provide source code 🙏
I need source code for my project please tell me from where I get it
Git would be great place to begin with.
Can anyone help me out .
I an getting an error of no such file or directory :
But the name of file is the same 😢
Great video Anirudh, keep up the good work !
I'm facing some difficulty.. NameError: name 'LemNormalize' is not defined
As we given data science input..so chat bot is going to give answer for only questions related to data science..and not on other type of questions
Hey, did you do the chatbot? Coz I tried as he said and I ain't able to get the foundations or anything other than hi or hello. It says look-up error
Hello! can you create a video on how to create a bot on facebook user account not on page using python or js ?
Hi, Thank you for your valuable suggestion, We will try to look into it and will try to bring the video on our channel
Sir, I am still getting the error even after uploading chat Bot.txt
It's an amazing lecture
how we made chatbot to read and display info from the excel sheet
How to work file download pause and resume functionality in a python program
The Content is always Amazing 👍👍👍
Thank you, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
can anyone please tell me where is the code thats used in this session
I'm getting an issue where all of my greeting functions work, except for any with more than one word. Please help
Hi I have made this but when i am writing bye it’s not responding like yours!
arey par run kaha karna hai vscode mein nhi chalega kya?
where can i get the code
Bro Im getting an error from fit_transform missing 1 positional arguement("raw_documents")
Awesome content. It will be helpful in building my first ever chatbot
Dear Learner it was Great to hear! for more such content please subscribe to our channel.
Did you finish?
Could you please send me the presentation?
Is there a way to have the code?
when I use this code at last else it shows an error why
How to get this dataset?
Itna fantastic hai ki khud hi decide kar Lete hai aap
the guy knows his stuff, majja agaya
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
When I execute the filenot found error was occur......even I properly imported .......
From where i get my corpse file ?
Is there a way to remove stop_words warning?
Did we ever hear back on this?
please provide that google collab code
How to integrate this in webpage
I don't know why your channel is so underrated but thank you for such great content.
🙏🙏🙏🙏
You're welcome, we're glad we could help you😇 Subscribe to our channel for more such content, and hit the bell icon so you are always notified of updates from us!
Hi do have code of chatbot?
How to get free courses and certificate
🔥🔥 Visit Great Learning Academy to learn from any of our 300+ free courses and get your free certificate of completion, Register Now: glacad.me/FreeCourses_1000Hours 🔥🔥
@@greatlearning is that free?
Jb bh is website pr jao koi course free nahi hai
I want to put some in a game I'm making but can't figure out how
hello sir i got an error related to " object is not iterable " on if(greet(user_response) !=None) that line
what can i do ?
'builtin_function_or_method' object is not iterable, this type of error is occured
yeah i got my prbolem. thanks for showing this types of basic projects'
Sir please give me a code
Hello sir can you please help me. I am getting an import error while importing sklearn. I am already installed it
Did you find the answer?
Brother you are amezing i watched full video and i completely understood what is Chatbot ...you are explaining in a simple language which is more benificial for me...
Hats off bro🙌🙌✌️
Hi we are glad that you liked our Content Please do subscribe to our Channel for Similar & Awesome Content
Sir iam getting error that tfidf is not defined in the chat when I have written the foundations
Same bro, did you resolve the problem .. please tell me,if u did
Sir can i get a code ,it's amazing 👏
I need Source Code of the NLP Chat Bot
can i get the source code
Is this Chatbot work in Facebook and Instagram
If we want to replace the English language with another language, let it be Arabic, what should be done? What will change in the project?
can you give the ccode?
Sir can you give source code for this It would be helpful
can u send source code
40:30 *talks bout giving compatative exams*
me who's 13 y/o : hmmm mhhhh yeup i deffienetly did that
is here use flask or not if not why
Because it's not running in server
Hw was going too fast. I couldn't catch many things as I am extremely new in this field
Hello sir! please provide the code