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




[ad_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

โญ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while youโ€™re typing. I’ve been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=pythonengineer&utm_content=description-only

๐Ÿš€๐Ÿš€ JOIN MY NEWSLETTER ๐Ÿš€๐Ÿš€
https://www.python-engineer.com/newsletter/

๐Ÿš€๐Ÿš€ Get exclusive content on Patreon: ๐Ÿš€๐Ÿš€
https://www.patreon.com/patrickloeber

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

Article “Contextual Chatbots with Tensorflow”:
https://chatbotsmagazine.com/contextual-chat-bots-with-tensorflow-4391749d0077

NLTK:
https://www.nltk.org

You can find the code on GitHub:
https://github.com/python-engineer/pytorch-chatbot

PyTorch Beginner Course:
https://www.youtube.com/playlist?list=PLqnslRFeH2UrcDBWF5mfPGpqQDSta6VK4

Please checkout my website to see all tutorials:
https://www.python-engineer.com

You can find me here:
Twitter: https://twitter.com/python_engineer
GitHub: https://github.com/python-engineer

Icons:
https://fontawesome.com/icons/comments
https://fontawesome.com/icons/robot

#PyTorch #NLP #DeepLearning

Source


[ad_2]

Comment List

  • Python Engineer
    November 25, 2020

    I can't be the only one bothered by the capitalized X in X_train but lower case Y in y_train ๐Ÿ˜‰

  • Python Engineer
    November 25, 2020

    ๐Ÿ™‚

  • Python Engineer
    November 25, 2020

    I've installed nltk, but I get the error: "No module named 'nltk_utils'"
    Can anyone help

  • Python Engineer
    November 25, 2020

    what is the name of the IDE you use

  • Python Engineer
    November 25, 2020

    Thanks

  • Python Engineer
    November 25, 2020

    I'm in love with your explanation dude

  • Python Engineer
    November 25, 2020

    Hey there. Bro, u are make awesome content. But i suggest u to make fifth part that will be called "Advanced model" or something like that. In that part i suggest u to improve performance(using lemmatization instead of using stemm and using other things that can improve performance).

  • Python Engineer
    November 25, 2020

    RuntimeError: expected scalar type Long but found Int . please solve this error

  • Python Engineer
    November 25, 2020

    From where did that json data file get the information…web scraping or was it hardcoded?

  • Python Engineer
    November 25, 2020

    how we build this code to interface like android or web?

  • Python Engineer
    November 25, 2020

    I'm getting an error from num_workers even I change the number.

    num_workers=0

    RuntimeError: Expected object of scalar type Long but got scalar type Int for argument #2 'target'

    Could you tell me how to solve it? Thanks

  • Python Engineer
    November 25, 2020

    I'm getting an error for num_workers = 2,
    DataLoader worker (pid(s) 7880, 4672) exited unexpectedly.

    I tried changing it to 0. Then I get the error,
    Expected scalar type Long but found Int

    P.S: My laptop doesn't have gpu support

  • Python Engineer
    November 25, 2020

    Dude you are seriously amazing! I understood everything! Love the visualisation you provided! Keep it up! Subbed

  • Python Engineer
    November 25, 2020

    RuntimeError:

    An attempt has been made to start a new process before the

    current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your

    child processes and you have forgotten to use the proper idiom

    in the main module:

    if _name_ == '__main__':

    freeze_support()

    The "freeze_support()" line can be omitted if the program

    What is this error when executing the train.py

  • Python Engineer
    November 25, 2020

    Excellent !!!!

  • Python Engineer
    November 25, 2020

    Thanks for your awesome effort. Was just curious about the VScode theme that you are using? Would you be able to share the name or is it a custom one that you've made?

  • Python Engineer
    November 25, 2020

    Amazing content man

  • Python Engineer
    November 25, 2020

    I enjoyed your video WR4E

  • Python Engineer
    November 25, 2020

    Can you say whether the intent recognition (using Bert, Word embeddings) is helpful in the chatbot also?

Write a comment