Presentation is loading. Please wait.

Presentation is loading. Please wait.

Influence detection of famous personalities using Politeness and Likeability Navita Jain.

Similar presentations


Presentation on theme: "Influence detection of famous personalities using Politeness and Likeability Navita Jain."— Presentation transcript:

1 Influence detection of famous personalities using Politeness and Likeability Navita Jain

2 Motivation Goal: Model influentiality of known personalities on Twitter Hypothesis:  People generally follow personalities who are likeable  Politeness is a trait liked by people Polite and likeable people are influential

3 Data Twitter data 2 different types of data 1.For likeability or attitude detection: A dataset of tweets in which each influential or non-influential user is referred. Example tweets : RT @Chamberlain1973: FOUR Doctors Warn - Trump Has a Narcissistic Personality Disorder! Unstable 2b President? #DonaldsDisorder #VOAV https… 2.For politeness detection: A dataset of tweets, tweeted by each influential or non- influential user. Example tweets: "@R_U_OK_UK: @realDonaldTrump @glozee1 @PaulManafort @CNN @DanScavino Vote trump to save the west. Don't become like Europe - #WakeUpAmerica

4 Converted all the alphabets to lowercase for consistency Removed statements that do not convey a message (sentiment) Kept 100 genuine tweets (tweets after preprocessing) for each test user Data Pre-processing Data collected from Twitter Api in English language

5 Annotation: Manually classified tweets Politeness @realdonaldtrump ‘we are becoming a third world country because of jerks like him\' Great !‘, ‘impolite’ @narendramodi 'On EarthDay, reverence and gratitude to our planet that has given us everything’, ‘polite’ Likeable @Tweet referring Barack Obama: ‘I AM SO PROUD that I was able, in my lifetime, to see a Black man, BARACK H. OBAMA, become the President of the United States of America.’, ‘positive‘ @Tweet referring Sarah Palin: ‘ Are you sure, That well known scientist Sarah Palin told me it's all rubbish. Phew! you had me going for a moment.’, ‘negative’

6 Tweet2FeatureVector Used Stanford NLP tool to automatically parse dataset. Politeness Feature Vector : pronouns, adjective, verb.. [‘greetings’, ‘thank you’, ’please’, ’respected’, ’go to hell’, ‘f*ck’…….] Likeable Feature Vector : adjective, verb.. Created Likeable Feature Vector ['hate', 'pleased', 'perfect', 'envy‘, ’lmao’]

7 Classification Trained Naïve Bayes classifier for Politeness: Performed k = 5 fold cross validation Train on 80% of data, test on rest 20% Trained Support Vector Machine classifier for Likeability: Kernel : Linear Performed k = 10 fold cross validation Train on 90% of data, test on rest 10%

8 Spearman's rank correlation coefficient Measure of the strength of the association between two rank sets, where x i and y i are the ranks of users based on two different influence measures in a dataset of N test case where x i is politeness ranking and y i is likeability ranking

9 Result Test CasePoliteness Rank/ScoreLikeability Rank/Score Influence Rank/Score Barack Obama40.7440.88 40.9515 Donald Trump70.6450.84 70.9273 Jeb Bush50.7020.93 30.9576 John Boehner90.4100.31 100.8848 Kim Kardashian20.8410.94 10.9818 Narendra Modi10.85530.91 20.9758 Rahul Gandhi80.5290.44 90.8970 Sarah Palin60.6580.60 80.9152 Stephen Smith30.74570.70 60.9391 Taylor Swift40.7460.83 50.9394

10 Ground TruthPredicted Influential users Barack ObamaKim kardashian Donald TrumpNarendra Modi Narendra ModiJeb Bush Kim KardashianBarack ObamaTaylor Swift Non-influential users Jeb BushDonald TrumpJohn BoehnerRahul GandhiSarah PalinStephen Smith

11 Thanks

12 Influence Detection Train on 80% of data, test on rest 20% Politeness correlates positively with influence Higher Politeness score more influential a person should be. Likeability proportional to influence First iteration, sum the score if above some threshold : influential

13 Thanks Suggestions

14 Twitter Api command for Data collection ''' Tweets on : user ''‘ raw_tweets = myApi.GetSearch('Donald Trump',lang='en',count=100) ‘’' Tweets by user''‘ raw_tweets = myApi.GetUserTimeline(screen_name='@realDonaldTrump',count=200,exclude_replies='true')

15 Opinion lexicon : Positive and negative word list http://sentiment.christopherpotts.net/lexicons.html

16 Downloaded 100 tweets for each test user for likability measurement Kept retweets, as if a person retweets it means its their sentiment/agrees with it. (not sure about this ) Removed urls but kept hashtag because informative. For ex. “President Donald J. Trump #IrritateMeIn4Words”


Download ppt "Influence detection of famous personalities using Politeness and Likeability Navita Jain."

Similar presentations


Ads by Google