Twitter Sentiment Analysis - Learn Python for Data Science #2

preview_player
Показать описание
In this video we'll be building our own Twitter Sentiment Analyzer in just 14 lines of Python. It will be able to search twitter for a list of tweets about any topic we want, then analyze each tweet to see how positive or negative it's emotion is.

The coding challenge for this video is here:

Naresh's winning code from last episode:

Victor's Runner up code from last episode:

I created a Slack channel for us, sign up here:

More on TextBlob:

Great info on Sentiment Analysis:

Great sentiment analysis api:

Read over these course notes if you wanna become an NLP god:

Best book to become a Python god:

Please share this video, like, comment and subscribe!
That's what keeps me going.

Feel free to support me on Patreon:

Two Minute Papers Link:
Follow me:
Signup for my newsletter for exciting updates in the field of AI:
Рекомендации по теме
Комментарии
Автор

Just now subscribed. My friend, you have enough enthusiasm to launch the Mission to Mars, and you don't waste a second on things that don't matter. You are an excellent teacher for those who, like me, fall asleep listening to slow-talkers. This is just the right speed to actually learn the subject correctly. The human brain was meant to absorb complex information at a very rapid pace, and I think you've discovered the optimum speed. Bravo, maestro!

adamchurvis
Автор

Siraj, dude, these video are killer. I'm in my finishing year of computer engineering studies and just today realized I'm turned on by data science. These videos got me so hyped for learning. You bring the "crash" in "crash course" to a nuclear/alien attack/asteroid impact/tsunami level.

SpomenkoJabucar
Автор

Hey Raj ! Thanks for the super tutorial ! A quick notes for people having some troubles with TextBlob:

#1: The import should be: from textblob import TextBlob (Python is case sensitive, so it's important to import TextBlob with with capital T & B)

#2: textblob should be installed like this :
Python2:
$ pip install -U textblob
$ python -m textblob.download_corpora

Python3:
$ pip3 install -U textblob
$ python3 -m textblob.download_corpora

mehdimerai
Автор

for charmap error replace line 18 with



For tweepy 32 error change permission in the dashboard

For tweepy 89 check your keys and paste again

excellent video, God bless you

jollyanurag
Автор

Great video again, you made my day with the liberal arts comment. This is slowly becoming my favorite youtube channel.

scienceandmind
Автор

that savage liberal arts degree joke tho lmao

rickmedina
Автор

For those that are watching this in 2018. Twitter changed it's app policy and notwyou have to have website url on which you want to host your app. A simple way to get around it is to make a Wordpress account and link it to the twitter app if you don't have a website url.

awalvie
Автор

I got to say man, i work at a fortune 500 and your videos are fast, easy and entertaining. Keep it up my man!

lilhomieglen
Автор

this is some awesome stuff, Siraj. most concise and on-point tutorials I've seen. thank you!

one thing worth mentioning though it that when you install TextBlob and try to do analysis or just print tags, it will ask you to download corpus, i.e. some additional language-parsing related files. You can do it from the terminal by running "python -m nltk.download('all')"

antopolskiy
Автор

dude im so happy you're actually funny-funny not lame funny while being a smart software engineer. really entertaining and educational ahaha

yandhi
Автор

Your videos are getting better and better (they were great from the beginning ;) ). I like how you break it all down and not only make it seem easy but also provide a quick way of getting in to the various topics. I especially liked your "Building a neutral net in 4 minutes" video. I have done a couple projects in ML myself, and I am familiar withe the basic mathematics, so I really enjoyed your take on programming that NN. Thank you. :)

GandalfExtreme
Автор

Your channel would surely become a go to for "Why you should learn programming and the cool things you can do with it". Good work keep it up.

officialrohith
Автор

can i just say I LOVE YOUR CHANEL every single video i seen!

zeze
Автор

I love your channel Siraj! You have to explain in 6 minutes what others explain in 2 hours, is awesome!

makecodes
Автор

Siraj you're a lifesaver man!!! I have been looking for a simple text processor forever. Thanks for introducing TextBlob
Big fan of your channel by the way

Lalalacici
Автор

This is the Machine Learning channel everyone NEEDs to see. I love your style its so different.

jamescampbell
Автор

Siraj I just found your channel. Work problems brought me here, but I've been watching and learning from you.TY

Juliapak
Автор

Thank you for this!

For a person 3 days since I started learning python and switching from learning the bare basics of python to a project based learning method, It's taking me hours to install the dependencies and the dependencies of THOSE dependencies (Because this video assumes a lot of things being used here are already being used by the coder)

But thank goodness I've managed to install everything I need to run the interpreter and install the modules by cmd. Now I can actually start doing the sentiment analysis demo!

apollodorus
Автор

Hi Raj, you are an excellent coach. I don’t get bored while you explain the subject. I became you fan !!

sukisadventure
Автор

Looking around 3:36, you have the wiki.tags, which outputs ('Siraj', 'NNP'). What does the NNP mean ? And the rest of the tuples ? I can't seem to find any info on the textblob documentation ...

ajones
visit shbcf.ru