Presidential Debate Twitter Sentiment Analysis using Python and NLTK

  Рет қаралды 19,330

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Пікірлер
@grahamwalker512
@grahamwalker512 4 жыл бұрын
Great video! Always great to see a tutorial that uses current events to make it "real". Keep up the great work.
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
@Graham Walker! Yes, definitely! Trying to keep it relevant and a little bit fun as well.
@hectortobias8840
@hectortobias8840 3 жыл бұрын
instablaster
@vipinsainilol
@vipinsainilol 3 жыл бұрын
I appreciate you for making this video!...a great help to learn sentiment analysis
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much @Vipin! Glad you liked it!
@pantsuslayer8631
@pantsuslayer8631 4 жыл бұрын
Thanks, i learned a lot;. Thought im just starting and couldn´t understand every single thing i got the basic idea. please keep making this type of videos!
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
👏 awesome, thank you soo much @Pantsu Slayer! If there’s anything you want me to dive deeper into, let me know! Plenty more videos coming 👨‍💻!
@gabrielfreay
@gabrielfreay 3 жыл бұрын
You are the Best, I supposed to be sleeping 😴 but I prefer being watching your videos. Seriously 😳 it's amazing how easy you make things looks like.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Ayyyee! So pumped you're enjoying it.
@nishadseeraj7034
@nishadseeraj7034 4 жыл бұрын
Great tutorial! i love your teaching style and how you explain everything as well as the great flow of your video! Looking forward to more python tutorials. I'm new to python having most of my prior experience in R
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
Awesome stuff @Nishad! Welcome to the fam!
@Tourismmj
@Tourismmj 2 жыл бұрын
Thank you so much for sharing the great tutorial, Nick!!!!
@musicpatron1693
@musicpatron1693 3 жыл бұрын
YOUUUUU ARREEE TOOOO FASTTTTT FOR MEEE!!! GOOD JOB!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks sooo much! Glad you enjoyed it. Check out the code in the description as well!
@kwabsbotwe6124
@kwabsbotwe6124 4 жыл бұрын
To identify the subject from 15:20 onwards how do you differentiate a subject that has both Biden and Trump?
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
Heya @kwabs, you can do that from step four, instead of identifying a single candidate. You can filter on tweets that mention both like so: Old code: df[df['Biden']==1][['Biden','polarity','subjectivity']].groupby('Biden').agg([np.mean, np.max, np.min, np.median]) New code: df[(df['Biden']==1) and (df['Trump']==1)][['Biden','polarity','subjectivity']].groupby('Biden').agg([np.mean, np.max, np.min, np.median])
@kwabsbotwe6124
@kwabsbotwe6124 4 жыл бұрын
@@NicholasRenotte thanks 🙏
@kwabsbotwe6124
@kwabsbotwe6124 4 жыл бұрын
In situations where you want to know the general political sentiments of the country over a period of time what are the factors to consider in your analysis?
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
@@kwabsbotwe6124 anytime amigo!!
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
@@kwabsbotwe6124 great question, although I wouldn't set out with too many pre-conceived notions as to what the factors might be. This is where exploratory data analysis, clustering and topic modelling come in handy to allow you to determine these factors.
@anukarthika4ever
@anukarthika4ever 3 жыл бұрын
Love your content! Condensed and to the point👍👍
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much @Anu! Glad you enjoyed it!
@sakethgupta2885
@sakethgupta2885 3 жыл бұрын
underrated channel
@ghosthanded
@ghosthanded 2 жыл бұрын
I keep getting the error TypeError: expected string or bytes-like object when I apply the cleaning functions
@yeancahogundipe268
@yeancahogundipe268 2 жыл бұрын
Please How do we balance the dataset ?Great tutorial btw!
@iTzDharma
@iTzDharma 2 жыл бұрын
Update 04.01.2023 Change this: tweets = [{"Tweets":tweet.text, "Timestamp":tweet.created_at} for tweet in query] with tweets = [{"Tweets":tweepy.Tweet.text, "Timestamp":tweepy.Tweet.created_at} for tweet in query]
@mihaelbos
@mihaelbos 2 жыл бұрын
Which sentiment library/tool/model do you recommend for analyzing customer reviews? It tried using vader, bert, roberta, textblob...so far bert was the most accurate.
@kartikyadav7421
@kartikyadav7421 2 жыл бұрын
Twitter error response: status code = 403; whenever i try to run the tweets command in the beginning
@christophercrager1925
@christophercrager1925 2 жыл бұрын
You make it look so easy. Thank you for sharing!
@MeetMoyele
@MeetMoyele 3 жыл бұрын
Thank you for the guidance. How much tweets can I retrieve from Twitter?
@princevladimierdelosreyes2025
@princevladimierdelosreyes2025 3 жыл бұрын
this is a great help. thanks! i subscribed
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much!
@explorenations892
@explorenations892 3 жыл бұрын
what if we want to create a flag for multiple references ??
@abdullahbutt1800
@abdullahbutt1800 3 жыл бұрын
Great video Nicholas! I'm struggling to put a condition where I want to get tweets from a specific time period. can you please guide me through it. Thanks!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Definitely you can apply a filter like so df[df['Timestamp']=='your period']
@dwikiahmamaulana2176
@dwikiahmamaulana2176 3 жыл бұрын
excuse me sir, what kind of method is used for this tutorial ?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Heya @Dwiki, it's using the native sentiment method from TextBlob I don't believe they go into much detail as to how it works though: textblob.readthedocs.io/en/dev/api_reference.html#textblob.blob.TextBlob.sentiment
@meeramaurya7670
@meeramaurya7670 3 жыл бұрын
Great Video, clear explanation..thanks a lot
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much @Meera!
@nwh9926
@nwh9926 3 жыл бұрын
Hi , I have problem on applying verification from twitter, this have been a second time because first application have been rejected. Any tips to avoid from been rejected? My project is for my final year project T.T which is for academic purpose T.T it's really important
@closed252
@closed252 3 жыл бұрын
Great Video!!!! Thank you so much for that!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Thanks so much @Diego, glad you enjoyed it!
@nitinluthra1751
@nitinluthra1751 2 жыл бұрын
Dear Nicholas, thank you for this very helpful and condensed video. I am completely new to coding so please answer this novice question. How does one get to the Jupyter Debate Analyser page (before you begin all your analysis)? Until now I have been following Visual Code Studio so this is new for me.
@ralphumo7152
@ralphumo7152 2 жыл бұрын
Its just a regular Jupyter page. He named it as "Debate Analyser". Hence you have the Jupyter logo beside the page name.
@wilsonwilson137
@wilsonwilson137 2 жыл бұрын
Hey, great videos!
@ashleysami1640
@ashleysami1640 4 жыл бұрын
Only you could make the debate about Pizza 😂. Where's that #Dominos sponsorship at? #nickforpizzapresident
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
🤷🏾‍♂️ I’m with you @Ashley Sami! #Dominos hit me up! 🤣
@hemalshah1410
@hemalshah1410 2 жыл бұрын
Hi Nic , while trying to perform -- tweets = [{'Tweet':tweet.text, 'Timestamp':tweet.created_at} for tweet in query] -- the line gives Twitter error response: status code = 403 . What could be reason ? I am having essential access on my twitter Dev account. any Help appreciated.
@sricharangovindolla7044
@sricharangovindolla7044 2 жыл бұрын
mine too! same problem
@hemalshah1410
@hemalshah1410 2 жыл бұрын
@@sricharangovindolla7044 I figured this is due to lack of permissions on your Twitter dev account. You need to get elevated access.
@sricharangovindolla7044
@sricharangovindolla7044 2 жыл бұрын
@@hemalshah1410 Ho ok thanks for sharing the information.
@Megtheanalyst_
@Megtheanalyst_ 2 жыл бұрын
@@hemalshah1410 I Was Approved Of Elevated Access But I Got An Error On That Code 🥹
@voiceofheart9873
@voiceofheart9873 3 жыл бұрын
Could you please tell me how to calculate positive , negative and neutral tweets ?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
All covered in the video 😊!
@voiceofheart9873
@voiceofheart9873 3 жыл бұрын
@@NicholasRenotte how can i visualize positive, negative and neutral for each individual with bar chart graph?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@voiceofheart9873 try taking a look at the matplotlib package, there is example with a line graph shown towards the end of the video.
@voiceofheart9873
@voiceofheart9873 3 жыл бұрын
@@NicholasRenotte Thanks for your valuable information sir. Could you please give your Email for contact with you?
@voiceofheart9873
@voiceofheart9873 3 жыл бұрын
@@NicholasRenotte Please make tutorial about Twitter new feature Covid-19 stream for sentiment analysis.
@ademhilmibozkurt7085
@ademhilmibozkurt7085 2 жыл бұрын
thank you so much
@nikhilshetty1212
@nikhilshetty1212 3 жыл бұрын
Hey bro Nicholas, I have downloaded a year's data on breast cancer awareness, and now I want to perform a sentiment analysis on it. Will this method be able to process those tweets?
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
Sure will! Just get it into a dataframe and it should be relatively the same process!
@nikhilshetty1212
@nikhilshetty1212 3 жыл бұрын
@@NicholasRenottebrother I'm stuck in the preprocessing step please help err says : 'float' object has no attribute 'replace'
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@nikhilshetty1212 sounds like it's trying to update a number instead of a string. Are you processing on a number based column or a string?
@nikhilshetty1212
@nikhilshetty1212 3 жыл бұрын
@@NicholasRenotte string. Actually It would be so great if I could share the issue pic with you
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@nikhilshetty1212 jump on the Discord server and shoot it through to me!
@bronsonranga5770
@bronsonranga5770 4 жыл бұрын
Vote pineapples hahah crack up
@NicholasRenotte
@NicholasRenotte 4 жыл бұрын
🤣 #PepperoniLife for days @Bronson Ranga!!
@musicpatron1693
@musicpatron1693 3 жыл бұрын
hahah you act like getting a developer account is easy...i'm a student and i am not makign an app..it took like a volleying of discussions for a couple days to get a twitter account.. you have to specifically indicate literally what you're doing.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
FR? I honestly managed to breeze through it, although my explanation was a little different to what I actually ended up using it for 😬
@musicpatron1693
@musicpatron1693 3 жыл бұрын
@@NicholasRenotte i'm just saying, cuz some people might need to know they need to be very literal about what they're using it for..they didn't initially accept my "I'm using it for a school project to do sentiment analysis on Donald Trump's tweets" ...they wanted more info than that. it was frustrating.
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@musicpatron1693 ah got it, did you end up getting it in the end though?
@musicpatron1693
@musicpatron1693 3 жыл бұрын
@@NicholasRenotte yessir!
@NicholasRenotte
@NicholasRenotte 3 жыл бұрын
@@musicpatron1693 yessss! Awesome work!
Bitcoin Sentiment Analysis Using Python & Twitter
29:42
Computer Science (compsci112358)
Рет қаралды 26 М.
Sentiment Analysis with BERT Neural Network and Python
31:56
Nicholas Renotte
Рет қаралды 132 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Twitter (AKA X) Sentiment Analysis Using Python
52:54
Computer Science (compsci112358)
Рет қаралды 269 М.
Natural Language Processing in Python
1:51:03
PyOhio
Рет қаралды 1,2 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 821 М.
Twitter Sentiment Analysis (NLP) | Machine Learning | Python
45:16
Hackers Realm
Рет қаралды 62 М.
HuggingFace Crash Course - Sentiment Analysis, Model Hub, Fine Tuning
38:12
Learn Machine Learning Like a GENIUS and Not Waste Time
15:03
Infinite Codes
Рет қаралды 324 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН