Twitter Sentiment Analysis – Learn Python for Data Science #2




[ad_1]

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:
https://github.com/llSourcell/twitter_sentiment_challenge

Naresh’s winning code from last episode:
https://github.com/Naresh1318/GenderClassifier/blob/master/Run_Code.py

Victor’s Runner up code from last episode:
https://github.com/Victor-Mazzei/ml-gender-python/blob/master/gender.py

I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/

More on TextBlob:
https://textblob.readthedocs.io/en/dev/

Great info on Sentiment Analysis:
https://www.quora.com/How-does-sentiment-analysis-work

Great sentiment analysis api:
http://www.alchemyapi.com/products/alchemylanguage/sentiment-analysis

Read over these course notes if you wanna become an NLP god:
http://cs224d.stanford.edu/syllabus.html

Best book to become a Python god:
https://learnpythonthehardway.org/

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

Feel free to support me on Patreon:
https://www.patreon.com/user?u=3191693

Two Minute Papers Link:
https://www.youtube.com/playlist?list=PLujxSBD-JXgnqDD1n-V30pKtp6Q886x7e
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content!

Source


[ad_2]

Comment List

  • Siraj Raval
    December 1, 2020

    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!

  • Siraj Raval
    December 1, 2020

    OAuthHandler is not a method. It is a class.

  • Siraj Raval
    December 1, 2020
  • Siraj Raval
    December 1, 2020

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

  • Siraj Raval
    December 1, 2020

    can anyone tell where is the solution code of this challenge?

  • Siraj Raval
    December 1, 2020

    thanks! great stuff!
    how can I control how much tweets im seeing? now its just a short list

  • Siraj Raval
    December 1, 2020

    I liked this because you mentioned two minute of paper

  • Siraj Raval
    December 1, 2020

    Usually I run 1.5x – 2x on learning videos for Siraj's videos, I have to run it on 0.5x – 0.75x

  • Siraj Raval
    December 1, 2020

    twitter api cant open

  • Siraj Raval
    December 1, 2020
  • Siraj Raval
    December 1, 2020

    i had to slow the video down to learn lmao

  • Siraj Raval
    December 1, 2020

    LOL. :The best psychological tool out there… Twitter"

    That is great!

  • Siraj Raval
    December 1, 2020

    Wat abt Instagram analysis?

  • Siraj Raval
    December 1, 2020

    where i can this code?

  • Siraj Raval
    December 1, 2020

    her is my tweet analysis which work on multiple topic to search at once
    plz check it out – https://github.com/baseplate77/Tweets_analysisor/blob/master/README.md

  • Siraj Raval
    December 1, 2020

    What does polarity and subjectivity = 0 mean? A neutral statement? Well that's doubtful…

  • Siraj Raval
    December 1, 2020

    why is this code showing me error when I execute?I have the dependencies installed too.

  • Siraj Raval
    December 1, 2020

    hey i have code to acutual speak you!! which ML model is most accuracy
    code link: https://github.com/baseplate77/MachinLearning-Model-sklearn-
    check it

  • Siraj Raval
    December 1, 2020

    Siraj raval: data science, sexiest job in 2019.
    Also siraj raval:i never get a good match on tinder

  • Siraj Raval
    December 1, 2020

    Useless video.

  • Siraj Raval
    December 1, 2020

    Does this not return the full tweets? Is there any way to extend the code to get full text tweets?

  • Siraj Raval
    December 1, 2020

    neden bu adamı gördükçe cebimi yoklayasım geliyor

  • Siraj Raval
    December 1, 2020

    How do you look at all methods in tweet wrapper class? is tweet.text that returns a string version of the tweet the only method. Unable to find documentation on this on tweepy.
    Sorry if this is a noob question

  • Siraj Raval
    December 1, 2020

    You are awesome man .. I am just realizing how easy the data science can be.. Love your videos. Highly motivating and of course…… challenging !!

  • Siraj Raval
    December 1, 2020

    Fk this is hard , i will find another field far from programming
    Programming is not for me

  • Siraj Raval
    December 1, 2020

    Siraj, Twitter has made it really hard to access its API. It's been an hour I've been communicating with Twitter over email trying to convince them to grant me access to their API

  • Siraj Raval
    December 1, 2020

    in pycharm

    from textblob import TextBlob
    import tweepy

    textvar = "Trying out an video by siraj but stuck"
    senti = TextBlob(textvar)

    but i get an error next

    senti.tags()

    Traceback (most recent call last):

    File "<input>", line 1, in <module>

    TypeError: 'list' object is not callable

    What am I doing incorrectly ?

  • Siraj Raval
    December 1, 2020

    apps.twitter.com not opening…..how to get API from developer site

  • Siraj Raval
    December 1, 2020

    im starting my masters i compsci this fall but i have a background in engineer so your videos been helpful catching me up to speed. Thank you!

    ps. my dumbass was stuck for an hr trying to run this because i typed tweetpy instead of tweepy ffs

  • Siraj Raval
    December 1, 2020

    Hey we want to extend this by making graph of tweets vs polarity.so which function to use to take all polarity values in a list??????
    PLS HELP

  • Siraj Raval
    December 1, 2020

    Can someone please tell me, where can I find the meaning of these tags that we got using tags method like…. What is 'JJ', 'FW'…….. I wanna se the whole list of these tags

  • Siraj Raval
    December 1, 2020

    Can u make out a video on how can i clean up my extracted data from twitter api. I need tweets for sentiment analyses but the tweets i extracted are in a very bad language so how can i make it clean so to make textblob more accurate to analyse the sentiment from the tweets??

  • Siraj Raval
    December 1, 2020

    https://github.com/vishk95/sirajTwitterChallenge.git
    Not an optimal code but it works. Tell me how can I improve this.

  • Siraj Raval
    December 1, 2020

    you're such in intelligent boy

Write a comment