Sentiment Analysis with BERT Neural Network and Python

preview_player
Показать описание
Want to leverage advanced NLP to calculate sentiment?

Can't be bothered building a model from scratch?

Transformers allows you to easily leverage a pre-trained BERT neural network to do exactly that!

In this video we'll go through how to get up and running with Hugging Face Transformers and BERT to be able to calculate sentiment. We'll run the model using a single prompt but also leverage BeautifulSoup to scrape reviews from Yelp to be able to calculate sentiment on a larger scale.

In this video you'll learn how to:
1. Install Transformers
2. Perform Sentiment Scoring using BERT and Python
3. Scrape reviews from Yelp and Calculate their Sentiment

Chapters
0:00 - Start
0:23 - How it Works
1:48 - Tutorial Start
2:55 - Install and Import Dependencies
9:20 - Setup BERT and Transformers Neural Network
11:27 - Encode Sentences for Modelling and Calculate Sentiment
16:40 - Scrape Reviews from Yelp using BeautifulSoup
22:41 - Load Reviews into Pandas and Calculate Sentiment
29:52 - Run the Sentiment Pipeline for Multiple Reviews
31:32 - Wrap Up

Oh, and don't forget to connect with me!

Happy coding!
Nick

P.s. Let me know how you go and drop a comment if you need a hand!
Рекомендации по теме
Комментарии
Автор

These kind of content is what most budding ML enthusiasts need. Thanks for this

sahilsmohanty
Автор

I love how you take your time to explain each sentences and what they do! Absolutely love it!
Very helpful as a beginner!
Keep up

abrh
Автор

amazing video! I mixed the content from your code with a csv file that I got from extracting tweets and now I can do a sentiment analysis on so many subjects! Thank you!!

sebastianzapata
Автор

Awesome video! If its to the extend of your knowledge, a subsequent video about fine-tuning a pre-trained model to a particular dataset would be very interesting. So train, test and validate the accuracy of a model pre- and post-training. I have read some articles which showed accuracy of a model can be improved significantly when trained on the particular dataset.

Michael-dlsj
Автор

Your channel is a treasure for Data Scientist.

bhavikdudhrejiya
Автор

This was a really helpful one. Thanks for the step by step and detailed explanation.!👍

MugdhaKshirsagarDS
Автор

Thanks again for this tutorial Nick. My challenge is to 100% finish all your tutorials. 3hrs, 5hrs, 8hrs, 100hrs. all of it.

satoshinakamoto
Автор

brother I wanna say that your videos are very easy to understand and along the way to follow practically in our computer please make complete course on NLP and OPENCV And Machine learning because you are very good teacher I very like you god give you long life with a lot of happiness

superrelaxation
Автор

BERT with multilingual benefit is great advantage for analysis of text (especially with large-diverse dataset ) . This is enlightening ! Thank you Nik

hemalshah
Автор

You are a life saver man. i was stusked with my research. you saved me.. i understood the basics. Thanks

raznyrazeek
Автор

Very good pal. You keep it simple and at high level.
I would be happy to see those two negative votes to elaborate further why they are not satisfied though..

rolsondeleferme
Автор

Hey Nik!
I've been looking left and right for a guide on how to interpret the logits from BERT and thank god you've uploaded something that explains it well! I liked and subscribed.
(Maybe you could refer me to a source, where you happen to learn it? - looking one for the FinBert variant)
Also, your crash course on that scraping part is straight on point and I love that you executed each line from it to show you how it gets transformed.
You are truly blessed with an out-of-this-world tutoring skill!

thaGkillah
Автор

Amazing video! Simple, structured, keep up the good work !!! P.S This helped me so much on my course lol

pauliusjanuska
Автор

You made it sound so simple! This is apt for beginners like me. Thank you ^^

arjumann
Автор

Yes, i think a bigger web scraping tutorial would be beneficial

joeones
Автор

I'm a new subscriber.., loving ur videos already... Cheers man all the best

sagara
Автор

I love the way you teach. I'm going to do my final year project on sentimental recommendation system. This will help me a lot

seherkanwal
Автор

Hello Nicholas Reynolds, I am a college student, I like your video very much, I keep learning, you are my half teacher, thank you very much, look forward to more videos

Aynold
Автор

Incredible work, love your explanations. Thank you!

metinunlu_
Автор

Excellent video explaining multiple concepts. Thank you for the great content!

daniel_partida