Chat Bot With PyTorch – NLP And Deep Learning – Python Tutorial (Part 1)

In this Python Tutorial we build a simple chatbot using PyTorch and Deep Learning. I will also provide an introduction to some basic Natural Language Processing (NLP) techniques.

1) Theory + NLP concepts (Stemming, Tokenization, bag of words)
2) Create training data
3) PyTorch model and training
4) Save/load model and implement the chat

Resource:
This tutorial was inspired and adapted from the following article:
"Contextual Chatbots with Tensorflow":

✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: *

📚 Get my FREE NumPy Handbook:

📓 Notebooks available on Patreon:

⭐ Join Our Discord :

If you enjoyed this video, please subscribe to the channel!

NLTK:

You can find the code on GitHub:

PyTorch Beginner Course:

Please checkout my website to see all tutorials:

You can find me here:
Twitter:
GitHub:

Icons:

#PyTorch #NLP #DeepLearning

———————————————————————————————————-
* This is a sponsored or an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

33 Comments

  1. Such a good explanation, seriously anyone with a negative IQ can also understand!
    Never stop uploading please 🙂

  2. Thank you very much for this video.I always search to find this kind of explanations and knowledges.You are really great 🙂

    1. I am chemist actually .I ve learning python and machine and deep learning and NLP for 3 years.I rarely need to help but sometimes I really need too but there is nobody to ask

  3. You are the best!! Among all the youtube videos about chabot , you are the only one to explain step by step the fundamentals of coding a chatbot.

  4. This is really great tutorial, and currently I have a problem about using TF-IDF instead of boW, anyone has any resources to figure it out, please? I will appreciate it!

  5. Amazing tutorial, I’ve no idea about ML or DL, but the video is crisp enough to make understand everything 😊

  6. Thank you so much for this great project! I have a slight doubt…Every time I import a new package like numpy or random on my VS Code, my system isn’t able to read it. It says ‘ModuleNotFound’ I tried everything from changing to path to reinstalling multiple times but it doesn’t work. Please help me out with this. Thank youu

  7. This is a great explanation!!
    I have one doubt…what should you include in your intents file so that the bot responds with some default message every time it does not recognize a sentence asked by the user

    1. I implemented this in part 4. You don’t need to put the default message into the intents. You can simply put it in your code and whenever the probability for intent classification is not high enough, you can return the default message

  8. hey there great tutorial! i’m having just one problem, when stemming the words when i debug i always get ‘None’ as a result

  9. This is a nice video man!, I was hoping if you could do also a chatbot in web? Thank you so much for the effort

  10. Sir, thanks for this video seeing this video has made me love love NLP. I was looking for where to specialise in. Thanks 👍

  11. thank you so much for a wonderful tutorial! by the way, I was curious as to which vscode theme you were using—i find it very nice!

  12. Thanks so much. It was very understandable. But every time I put a new package in python and run it, it still says Module not found error.

Leave a Reply

Your email address will not be published. Required fields are marked *

Amazon Affiliate Disclaimer

Amazon Affiliate Disclaimer

“As an Amazon Associate I earn from qualifying purchases.”

Learn more about the Amazon Affiliate Program