Python Chat Bot Tutorial – AI ChatBot with Deep Learning (Part 4)




[ad_1]

This deep learning chatbot tutorial will show you how to use our previously created chatbot model to make predictions and chat back and forth with our user.

Text-Based Tutorial: https://techwithtim.net/tutorials/ai-chatbot/part-4/

Playlist: https://www.youtube.com/watch?v=wypVcNIH6D4&list=PLzMcBGfZo4-ndH9FoC4YWHGXG5RZekt-Q

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
https://tech-with-tim.teachable.com/p

📸 Instagram: https://www.instagram.com/tech_with_tim
🌎 Website https://techwithtim.net
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/pr2k55t
📝 LinkedIn: https://www.linkedin.com/in/tim-rusci
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim

💵 One-Time Donations: https://www.paypal.com/donate/?token=
💰 Patreon: https://www.patreon.com/techwithtim
◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
– Tech With Tim
– Python ai chatbot
– Deep learning chat bot python
– Python chatbot tutorial
– Chatbot python
– Python Tutorials

Source


[ad_2]

Comment List

  • Tech With Tim
    December 5, 2020

    Hi, thanks for the videos, i am learning a lot. I have a question, maybe some one can help me, if i have 10 intents how many neurons do i have to have ? 12 ?

  • Tech With Tim
    December 5, 2020

    Some help would be much appritiated:

    Traceback (most recent call last):

    File "D:/Documents/Python projects/ChatBot_basic/main.py", line 121, in <module>

    chat()

    File "D:/Documents/Python projects/ChatBot_basic/main.py", line 111, in chat

    results = model.predict([bag_of_words(inp, words)])

    File "D:/Documents/Python projects/ChatBot_basic/main.py", line 95, in bag_of_words

    s_words = [stemmer.stem(word.lower()) for word in s_word]

    NameError: name 's_word' is not defined

    This is the error I get. It would mean a lot if you could help.

  • Tech With Tim
    December 5, 2020

    I tried changing the intents.. but the bot doesn't answer them, need help!

  • Tech With Tim
    December 5, 2020

    NameError: name 'docs_x' is not defined, Can someone help me out with this error? i have defined docs_x = [] along with words and docs_y = []

  • Tech With Tim
    December 5, 2020

    THANK YOU TIM It worked out perfect

  • Tech With Tim
    December 5, 2020

    when i run the script after generating the data.pickle and model.tflearn files, it creates the tflearn files every time because there are three files generated. how do we prevent this so that it chooses the correct one to open and read for later data usage?

  • Tech With Tim
    December 5, 2020

    Anyone that finds any problems in retraining their data (does not respond to newly added intents) just simply delete the lines of code that relates to the loading of Pickle file since your program runs on that source file, so you'll need to delete it to retrain your program with the new intents. Just make sure to save it again in the Pickle file if your chat bot is ready so it won't retrain again when its on use.

  • Tech With Tim
    December 5, 2020

    Tim, Big heart for you bro. I loved your teaching skills, its so clear. Hope you continuously rise in life.

  • Tech With Tim
    December 5, 2020

    This is helpful! With a response rate of 80-90%, a well optimised chatbot is a must-have for every business. Check out how you can engage with customers better while driving efficiency with a free demo with Engati – http://s.engati.com/2r5

  • Tech With Tim
    December 5, 2020

    When I try typing 'hello' into the chat() function, i keep getting this error: ValueError: Error when checking input: expected dense_4_input to have shape (91,) but got array with shape (1,)

  • Tech With Tim
    December 5, 2020

    Awesome…many useful details. Keep up the good work..

  • Tech With Tim
    December 5, 2020

    hi tim, your videos are fantastic, and i loved how you explained the whole series. but, i am having an issue, everytime i run the bot, it gives the tag as something different. for eg, i wrote-hello, then it gives me the output as i am 18 years old. please help me!

  • Tech With Tim
    December 5, 2020

    How can I add clickable url in this json file??Could you please reply for this?

  • Tech With Tim
    December 5, 2020

    The accuracy of my model can't seem to go past 0.3 and I still can't get any reply other than the default "I don't understand"

    I'm currently increasing my nodes (8 to 16) and increasing hidden layers but no improvements so far. Any advice anyone?

  • Tech With Tim
    December 5, 2020

    Can you explain when I use python3.7?

  • Tech With Tim
    December 5, 2020

    If you set the n_epoch to 5000 you get 100% accuracy!

  • Tech With Tim
    December 5, 2020

    can anyone here put your pip list after the successfull completion of code?
    iam fed up of alternating the versions between tf and other modules

  • Tech With Tim
    December 5, 2020

    Sorry, can i know where is the data.pickle come from ?

  • Tech With Tim
    December 5, 2020

    i am getting an error prompted "No mode named Tensorflow.contrib"
    how to debug

  • Tech With Tim
    December 5, 2020

    Is there a way to fine-tune the bot as it greets me any time I say bye

  • Tech With Tim
    December 5, 2020

    Pravinkumar Raut
    Quality Engineer
    Great Place IT Services
    M: (+91) 9403-148-108

  • Tech With Tim
    December 5, 2020

    How can I implement contextual based response in this?

  • Tech With Tim
    December 5, 2020

    A line needs to be added: `nltk.download('punkt')`. Otherwise the training doesn't happen.

  • Tech With Tim
    December 5, 2020

    where is data.pickle file?

  • Tech With Tim
    December 5, 2020

    please help me. when i try to load the. .json file it says JSONDecodeError: Expecting value. hear are the other errors i am experiencing are
    return numpy.array(bag)
    ^
    SyntaxError: 'return' outside function and the s_words = nltk.word_tokenize(s) the name s is unidentified. and unidentified pickle on this line, pickle.dump((words, labels, training, output), f) and this one words, labels, training, output = pickle.load(f)

  • Tech With Tim
    December 5, 2020

    Everything's good but a couple of things which really bothered me a lot was the pronunciation of "data" and "tuple".

  • Tech With Tim
    December 5, 2020

    ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may install these DLLs by downloading "Microsoft C++ Redistributable for Visual Studio 2015, 2017 and 2019" for your platform from this URL: https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads

  • Tech With Tim
    December 5, 2020

    Hey Tim I changed the contents from intents .json fiile but I m not getting correct resposes. Where shall I change

  • Tech With Tim
    December 5, 2020

    make a video on how to convert into Rest API using flask

  • Tech With Tim
    December 5, 2020

    When I run the program, it simply says "No module named NLTK." What am I doing wrong?

  • Tech With Tim
    December 5, 2020

    Hello, i'm getting this error
    File "main.py", line 85

    bag = [0 for _ in range(len(words))]

  • Tech With Tim
    December 5, 2020

    If you are facing a RunTime Error, adding this "model = tfl.DNN(net)" to the try and except block fixed the problem

    try:

    model = tfl.DNN(net)

    ………

    except ValueError:

    model = tfl.DNN(net)

    …….

  • Tech With Tim
    December 5, 2020

    dude, I have to be honest, this series is really really fantastic!!! I appreciate your efforts. Keep it up. and please make more interesting series

  • Tech With Tim
    December 5, 2020

    I get a RunTime Error: "Attempted to use a closed session". Anyone else has this? If so, any solutions?

  • Tech With Tim
    December 5, 2020

    Any suggestions to link this type of chatbots to integrate in browser or to integrate with whatsapp or telegram applications.Thanks in advance.. Required guidance for the same…Thanks Tim another great series subscribed to the channel

  • Tech With Tim
    December 5, 2020

    can you help with deployment of chatbot in website.
    And how to train model in more efficient way.
    LL GOOD STUFF FROM YOU.THANK U FOR THIS SERIES.

  • Tech With Tim
    December 5, 2020

    Hey, Tim, can u plz help me? I keep getting RuntimeError: Attempted to use a closed Session.

Write a comment