Hey please do a video on online skills in demand this year otherwise I've been learning alot from you especially when it came to dropshipping thank you for the content
I am using python3 and I created the environment using venv - on the tutorial, I am coding on a linux server from digital ocean. If you get a server there - m.do.co/c/7d9a2c75356d , it comes pre-installed with python3.8 and you can follow this tutorial to set up the python environment www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server
There is an error with `training = np.(training)` Stack trace: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (188, 2) + inhomogeneous part...... Did you ever find a solution to this?
random.shuffle(training) max_length = max(len(item[0]) for item in training) training_padded = np.array([item[0] + [0] * (max_length - len(item[0])) + item[1] for item in training]) training = np.array(training_padded) # create train and test lists. X - patterns, Y - intents train_x = list(training[:, :-1]) train_y = list(training[:, -1:]) print("Training data created")
@@tbrnuythanks but now i have a problem with the predict class of the chatty function. It says “Input 0 of layer ‘sequential’ os incompatible with the layer: expected shape=(None, 99), found shape=(None, 90)”. i changed a lot my value and it still this type of error. How can i fix excepted ou found shape exactly the same plz?
Hello....I am facing this problem and I don't know how to solve it File "E:\python-de\chatbot.py", line 70, in training = np.array(training) ^^^^^^^^^^^^^^^^^^ ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (53, 2) + inhomogeneous part.
@Skolo Online Hello! does anyone know a way so that once i make this chatbot i can actually embed the chatbot into a small icon on the corner of my website that once pressed will enlarge and i can talk to the bot, without having the bot on its own separate page? Thanks
Its JS and HTML coding required for that, I will do a tutorial on it perhaps in the future, stay tuned with your notifications so you don't miss it when i do
@@SkoloOnline ok thank you! I had another quick question can we add like pictures next to the question and response I tried to use a tag in the jquery but it just gave me a missing , error .
is there an easy way of implementing conversational flow? im thinking of doing a mental health chatbot, but i want the chatbot to ask a series of questions where the user will then have to select boxes
This is really nice, thank you for the tutorial here, I was just wondering if you create one where the context is maintained across multiple chat sentences
I am trying to make my chatbot communicate with my server, so I am actually deploying the chatbot in production, but I don't get any answer from the chatbot. Also the server is on Apache2 and the website is built on PHP. Currently the chatbot is installed on a subdomain, I have now 2 weeks since I fail in making it work. Did you actually used your chatbot on a real webserver, and if so how did you make it work? would be nice if you could help me with this issue.
I did everything on the screen .... but my environment was different, I was on Ubuntu and python. There are some differences between development and production - maybe I will do a production tutorial in the future
Hello mam I want this bot to answer from multiple tag like what is your name and what do you do? but it will only answer its name.But I want this like it will answer its name and also tell what can it do.How do I do this?
"I need help with the following code as it throws an error when I run it. I have tried everything but couldn't find a solution." Traceback (most recent call last): File "D:\python-deep-learning-chatbot-main\python-deep-learning-chatbot-main\python-deep-learning-chatbot\chatbot.py", line 68, in training = np.array(training) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (10, 2) + inhomogeneous part. 10 documents 1 classes ['HCQT'] 13 unique lemmatized words ['anyone', 'are', 'day', 'ekse', 'good', 'hello', 'hey', 'hi', 'hola', 'how', 'is', 'there', 'you']
Thanks this is a great tutorial , how do we connect the chatbot to database mysql for e.g. to store chat history & intents.json in the database , would be nice if you can point me in the right direction ? Thanks
def getResponse(ints, intents_json): tag = ints[0]['intent'] list_of_intents = intents_json['intents'] for i in list_of_intents: if(i['tag'] == tag): result = random.choice(i['responses']) break else: result = "Type Something!" return result is this line working?
The files are created by the code when the model is trained and developed (by model i mean the AI model - called chatbot_model.h5), they are used later for making predictions.
Hi, great video :) how can we implement code so that, whenever the user asks something that isn't within the intents e.g "dsdefefeffsdfd" it throws a message "Sorry i do not understand please ask another question"
Yes, you can definitely do that. When you send your question, you can check for a match with the specified intents - if there is no match, then you return your standard response.
Thank you for being my first ever tutorial in making a chatbot.
You're welcome!
thanks for the explanation
sure
Another awesome lesson! Thanks Skolo Online :)
Glad you liked it!
With which library do you take the function .predict()
In the predict class?
.
Iam here 😀😀😀😀😀I'm literally delayed but I'm trying my best.... #Road to 1k😊😊😁😁
About 10-15 more to go to 1k, you have been watching since day 1 - thank you
Hey please do a video on online skills in demand this year otherwise I've been learning alot from you especially when it came to dropshipping thank you for the content
Noted!
Really awesome , I'm looking for this type of project from past 3 days
Great 👍
Thanks Skolo
You are welcome
loved it thanks
So glad!
Hi, did you create an enviroment with Anaconda or another tools)? And what version of python are you using?.... Thanks for your help
I am using python3 and I created the environment using venv - on the tutorial, I am coding on a linux server from digital ocean. If you get a server there - m.do.co/c/7d9a2c75356d , it comes pre-installed with python3.8 and you can follow this tutorial to set up the python environment www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server
There is an error with `training = np.(training)` Stack trace: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (188, 2) + inhomogeneous part...... Did you ever find a solution to this?
Same, were you able to solve it?
.
random.shuffle(training)
max_length = max(len(item[0]) for item in training)
training_padded = np.array([item[0] + [0] * (max_length - len(item[0])) + item[1] for item in training])
training = np.array(training_padded)
# create train and test lists. X - patterns, Y - intents
train_x = list(training[:, :-1])
train_y = list(training[:, -1:])
print("Training data created")
@@tbrnuythanks but now i have a problem with the predict class of the chatty function. It says “Input 0 of layer ‘sequential’ os incompatible with the layer: expected shape=(None, 99), found shape=(None, 90)”. i changed a lot my value and it still this type of error. How can i fix excepted ou found shape exactly the same plz?
Can you please help me with course work for 3D meshes using datasets I've?
No
i have this problem ModuleNotFoundError: No module named 'tensorflow.python'
Install it with pip
Which IDE do u use?
Google online anything you can download on your machine
Fab tutorial. Can you tell me where end user responses are stored and how to retrieve these responses? TY.
currently we are not storing responses, we have not connected a database, but you can just add database code and save
Hello....I am facing this problem and I don't know how to solve it
File "E:\python-de\chatbot.py", line 70, in
training = np.array(training)
^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (53, 2) + inhomogeneous part.
try googling the error, or even paste it in chatGPT
Skolo, why the tag "noanswer" is not included in the array classes? I think maybe we are not going to see the responses of that tag later
sure, you can add noanswer
how to speech skolo chat bot connect the data base given response.. plz tell me
We did not cover that in this Tutorial
What type of neural network architecture is this? In other source it discussed that this is RNN-LSTM. But I think this is not a RNN-LSTM.
I dont know what you are talking about
@@SkoloOnline thats mean you are a script kid
This is just a simple Neural network. Not RNN. Multi layer perceptron.
Are you from SA?
Yes
@Skolo Online Hello! does anyone know a way so that once i make this chatbot i can actually embed the chatbot into a small icon on the corner of my website that once pressed will enlarge and i can talk to the bot, without having the bot on its own separate page? Thanks
Its JS and HTML coding required for that, I will do a tutorial on it perhaps in the future, stay tuned with your notifications so you don't miss it when i do
@@SkoloOnline ok thank you! I had another quick question can we add like pictures next to the question and response I tried to use a tag in the jquery but it just gave me a missing , error .
is there an easy way of implementing conversational flow? im thinking of doing a mental health chatbot, but i want the chatbot to ask a series of questions where the user will then have to select boxes
It is possible, speak to a developer to assist - this is going to be more involved than the videos I post.
This is really nice, thank you for the tutorial here, I was just wondering if you create one where the context is maintained across multiple chat sentences
Feel free to fork the code and include that
Nice video, can I use Pyttsx3 on this model
Not sure
Class is in session
welcome and thanks
I am trying to make my chatbot communicate with my server, so I am actually deploying the chatbot in production, but I don't get any answer from the chatbot. Also the server is on Apache2 and the website is built on PHP. Currently the chatbot is installed on a subdomain, I have now 2 weeks since I fail in making it work.
Did you actually used your chatbot on a real webserver, and if so how did you make it work? would be nice if you could help me with this issue.
I did everything on the screen .... but my environment was different, I was on Ubuntu and python. There are some differences between development and production - maybe I will do a production tutorial in the future
I need your help my chatbot not accepting response ..why?
I dont know, just follow the code exactly - I cant see your code
May be you put static folder in some other folder like templates
Hello mam I want this bot to answer from multiple tag like what is your name and what do you do? but it will only answer its name.But I want this like it will answer its name and also tell what can it do.How do I do this?
.
"I need help with the following code as it throws an error when I run it. I have tried everything but couldn't find a solution."
Traceback (most recent call last):
File "D:\python-deep-learning-chatbot-main\python-deep-learning-chatbot-main\python-deep-learning-chatbot\chatbot.py", line 68, in
training = np.array(training)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (10, 2) + inhomogeneous part.
10 documents
1 classes ['HCQT']
13 unique lemmatized words ['anyone', 'are', 'day', 'ekse', 'good', 'hello', 'hey', 'hi', 'hola', 'how', 'is', 'there', 'you']
It is such an old code, try ChatGPt the error
Thanks this is a great tutorial , how do we connect the chatbot to database mysql for e.g. to store chat history & intents.json in the database , would be nice if you can point me in the right direction ? Thanks
You can just add database code in there - perhaps I will cover it in a future tutorial
def getResponse(ints, intents_json):
tag = ints[0]['intent']
list_of_intents = intents_json['intents']
for i in list_of_intents:
if(i['tag'] == tag):
result = random.choice(i['responses'])
break
else:
result = "Type Something!"
return result
is this line working?
yes it works
Hi, when i run app.py, why did (words.pkl, classes.pkl, chatbot_model.h5) files appear ?
The files are created by the code when the model is trained and developed (by model i mean the AI model - called chatbot_model.h5), they are used later for making predictions.
Hi, great video :) how can we implement code so that, whenever the user asks something that isn't within the intents e.g "dsdefefeffsdfd" it throws a message "Sorry i do not understand please ask another question"
Yes, you can definitely do that. When you send your question, you can check for a match with the specified intents - if there is no match, then you return your standard response.
Source code
github.com/tatiblockchain/python-deep-learning-chatbot
4:29 two years old does not even speak
.