SlideShare a Scribd company logo
1 of 20
Download to read offline
Top Treading of Twitter Friends

     Guangqinag Li, Ye Wang
Outline
•   Overview of Twitter
•   Motivation
•   Top Trending based on Tweet Rank
•   Demo
•   Conclusion
Overview of Twitter
• Write status




• A Tweet
Overview of Twitter
• See/reply friends’ status
Overview of Twitter
• Discuss over the same topic through
  Hashtag
Overview of Twitter
• Top Trending
• Deficiency
  – User can only customize trending based on
    locations.
  – Many of them are not interesting to users.
Motivation
• Allow user to see the top trending of
  friends
• How to define “Hot” topics among friends?
  – Term Frequency
  – Tweet Rank
    • Hashtag
    • Replies
Tweet Rank
• Create a Tweet Graph
  – Reply: like citation

                             Tweet 2




                             Tweet 1
Tweet Rank
• Create a Tweet Graph
  – Hashtag: implies the same topic
Tweet Rank
• Create a Tweet Graph
• Rank tweets using Tweet Graph
  – Similar to PageRank algorithm
  – Outcome: Rank Vector of all tweets
Tweet Rank
• Every tweet has a score
  – Between 0 to 1
  – This’s Tweet Rank
• The random walk                 33% 33%
                                    T1 33%
  – Start at a random tweet
  – Follow an out edge with equal probability
• Calculate Tweet Rank, such that each
  tweet has a real-time (in 24 hours)
  popularity rate
Teleport
• Isolated tweet
  – Not replied; not reply to others; no hashtag
  – Still possible this tweet is related to some hot
    topic.
• Assign a random probability for isolated
  tweet to all other tweets
Retweet
• Send an existing tweet (of others) around
  – Can be considered as a new tweet of a user
Term Rank
• Intuition: terms in a tweet with higher rank is
  more important
• Adjacency list: terms and term frequency in
  each tweet.
   – Term List<<tweet_id, term-frequency>>
• Scoring Scheme for each term:
  The sum of the multiplication of the logarithm of
  each Term Frequency (tf>0) and its TweetRank
  score   (1  log TermFrequency ) * (TweetRank ), i  TweetList
          i n
Top Trending
• Terms with top ranking are Top Trending
  (i.e. hot topic)
  – More frequently appear in User and user’s
    friends tweets/retweets
  – Hot Hashtag may be cited by many tweets.
  – Replied by many people.
Use of Twitter API
• Jtwitter
  A small library providing easy access to
  the Twitter API
  http://www.winterwell.com/software/jtwitter.php
• Twitter
  – getFriendsTimeline()
• Twitter.Status
  – id
  – inReplyToStatusId
Demo
• Scenario:                        Ye
                           1. Hello, I am fresh.
        Aries                                             Jane
    1. #Finalexam is        2. @Aries Good
                                                   1. Welcome, fresh~
        coming.            Luck on your finals
  2. @Ye I took a long          3. On, My            2. Yes, I am. So
  to prepare Algorithm        #finalexam is        where are you from?
    3. @Ye Dijkstra         coming too, sad~        3. Tomorrow go to
 Algorithm is important!   4. @Jane Tks, Jane.         DisneyLand!
  4. Reviewing Prim’s       Are you fresh,too?
                                                    4. DisneyLand is a
       Algorithm            5. @Jane I am a           magical place!!
  5. Reviewing Bread-        Chinese, you?
     First Algorithm
                                                   5. @Ye I am also a
                           6. @Jane I am glad          Chinese.
  6. Reviewing Depth-         to! See you~
                                                   6. @Ye All Chinese will go
     Firest Algorithm
                           7. @Aries How do           to play in Disneyland,
   7. Reviewing NP-                                       wanna join us?
                           you prepare? Any
       complete                  tips?             7. Doing Homework~
Tweet Graph
    Aries            Ye       Jane

        1                 1           1
                    2
3                                 2
                2         3

                    4         3           4
4

        5                 5       5
    6               6
                              6
            7
                    7                     7
Limitation
• Twitter Limit Rate
  – Twitter API only allows clients to make a
    limited number of calls in a given hour.
  – API Requests: 150 per hour.
• Common Words Elimination
  Small corpus for Common Words (60)
• Top Treading is based on single words.
  – Better use phrase
Conclusion
• Propose a concept of Tweet Rank
• Implement this concept with Tweet Graph
• Rank terms with term frequency and
  Tweet Rank
• Calculate Top Trending of friends for a
  particular user
  – A feature that current Twitter doesn’t have
  – Potential business: show relevant ad based
    on top trending of friends

More Related Content

Viewers also liked

Fermit India, salesATprojectsalescorp.com
Fermit India, salesATprojectsalescorp.comFermit India, salesATprojectsalescorp.com
Fermit India, salesATprojectsalescorp.comProject Sales Corp
 
Egypt GCCB Report Event Invite1
Egypt GCCB Report Event Invite1Egypt GCCB Report Event Invite1
Egypt GCCB Report Event Invite1Paul Scott
 
Tu privacidad online web download para reformar
Tu privacidad online  web download para reformarTu privacidad online  web download para reformar
Tu privacidad online web download para reformarSilvanatonelo
 
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...F.maximos Samoul
 
ChocQuibTown
ChocQuibTownChocQuibTown
ChocQuibTowngolier
 
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...Cat.Economica
 
Santuario arqueologico pachacamac
Santuario arqueologico pachacamacSantuario arqueologico pachacamac
Santuario arqueologico pachacamacMateo Msa
 
Psychologie alternative
Psychologie alternativePsychologie alternative
Psychologie alternativeBenoit Fabre
 
Chat - Foro - Videoconferencia
Chat - Foro - Videoconferencia Chat - Foro - Videoconferencia
Chat - Foro - Videoconferencia marosalp
 
Alex Valdés Sanzana - Asteroides
Alex Valdés Sanzana - AsteroidesAlex Valdés Sanzana - Asteroides
Alex Valdés Sanzana - AsteroidesAlexValdesSanzana
 

Viewers also liked (16)

Presentacion grupo 4
Presentacion grupo 4 Presentacion grupo 4
Presentacion grupo 4
 
Fermit India, salesATprojectsalescorp.com
Fermit India, salesATprojectsalescorp.comFermit India, salesATprojectsalescorp.com
Fermit India, salesATprojectsalescorp.com
 
Egypt GCCB Report Event Invite1
Egypt GCCB Report Event Invite1Egypt GCCB Report Event Invite1
Egypt GCCB Report Event Invite1
 
Tu privacidad online web download para reformar
Tu privacidad online  web download para reformarTu privacidad online  web download para reformar
Tu privacidad online web download para reformar
 
Coo nms press-release
Coo nms press-releaseCoo nms press-release
Coo nms press-release
 
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...
(Supplements to vigiliae christianae 118) roelof van den broek pseudo-cyril o...
 
Proyecto Primitivus
Proyecto PrimitivusProyecto Primitivus
Proyecto Primitivus
 
Diario de Navarra
Diario de NavarraDiario de Navarra
Diario de Navarra
 
ChocQuibTown
ChocQuibTownChocQuibTown
ChocQuibTown
 
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...
Dilemas de las empresas familiares ~ Cristina Alvarado y Manuel Pavón ~ Catec...
 
Santuario arqueologico pachacamac
Santuario arqueologico pachacamacSantuario arqueologico pachacamac
Santuario arqueologico pachacamac
 
Psychologie alternative
Psychologie alternativePsychologie alternative
Psychologie alternative
 
Chat - Foro - Videoconferencia
Chat - Foro - Videoconferencia Chat - Foro - Videoconferencia
Chat - Foro - Videoconferencia
 
Alex Valdés Sanzana - Asteroides
Alex Valdés Sanzana - AsteroidesAlex Valdés Sanzana - Asteroides
Alex Valdés Sanzana - Asteroides
 
Keeper #2
Keeper #2Keeper #2
Keeper #2
 
Copyright form
Copyright formCopyright form
Copyright form
 

Similar to Twitter trends for friends

Similar to Twitter trends for friends (11)

Tweakers Anonymous
Tweakers AnonymousTweakers Anonymous
Tweakers Anonymous
 
Shapes and patterns completed project
Shapes and patterns completed projectShapes and patterns completed project
Shapes and patterns completed project
 
Twitter Tips
Twitter TipsTwitter Tips
Twitter Tips
 
Cta.formativeassessment f eb12
Cta.formativeassessment f eb12Cta.formativeassessment f eb12
Cta.formativeassessment f eb12
 
Name that Dog! Presentation Rubric
Name that Dog! Presentation RubricName that Dog! Presentation Rubric
Name that Dog! Presentation Rubric
 
Paraphrasing Skills
Paraphrasing SkillsParaphrasing Skills
Paraphrasing Skills
 
370 October 10 Review
370 October 10 Review370 October 10 Review
370 October 10 Review
 
Muet reading
Muet readingMuet reading
Muet reading
 
Instructions presentation
Instructions presentationInstructions presentation
Instructions presentation
 
Reading skills
Reading skillsReading skills
Reading skills
 
Writing a short essay (1)
Writing a short essay (1)Writing a short essay (1)
Writing a short essay (1)
 

Recently uploaded

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 

Recently uploaded (20)

Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 

Twitter trends for friends

  • 1. Top Treading of Twitter Friends Guangqinag Li, Ye Wang
  • 2. Outline • Overview of Twitter • Motivation • Top Trending based on Tweet Rank • Demo • Conclusion
  • 3. Overview of Twitter • Write status • A Tweet
  • 4. Overview of Twitter • See/reply friends’ status
  • 5. Overview of Twitter • Discuss over the same topic through Hashtag
  • 6. Overview of Twitter • Top Trending • Deficiency – User can only customize trending based on locations. – Many of them are not interesting to users.
  • 7. Motivation • Allow user to see the top trending of friends • How to define “Hot” topics among friends? – Term Frequency – Tweet Rank • Hashtag • Replies
  • 8. Tweet Rank • Create a Tweet Graph – Reply: like citation Tweet 2 Tweet 1
  • 9. Tweet Rank • Create a Tweet Graph – Hashtag: implies the same topic
  • 10. Tweet Rank • Create a Tweet Graph • Rank tweets using Tweet Graph – Similar to PageRank algorithm – Outcome: Rank Vector of all tweets
  • 11. Tweet Rank • Every tweet has a score – Between 0 to 1 – This’s Tweet Rank • The random walk 33% 33% T1 33% – Start at a random tweet – Follow an out edge with equal probability • Calculate Tweet Rank, such that each tweet has a real-time (in 24 hours) popularity rate
  • 12. Teleport • Isolated tweet – Not replied; not reply to others; no hashtag – Still possible this tweet is related to some hot topic. • Assign a random probability for isolated tweet to all other tweets
  • 13. Retweet • Send an existing tweet (of others) around – Can be considered as a new tweet of a user
  • 14. Term Rank • Intuition: terms in a tweet with higher rank is more important • Adjacency list: terms and term frequency in each tweet. – Term List<<tweet_id, term-frequency>> • Scoring Scheme for each term: The sum of the multiplication of the logarithm of each Term Frequency (tf>0) and its TweetRank score   (1  log TermFrequency ) * (TweetRank ), i  TweetList i n
  • 15. Top Trending • Terms with top ranking are Top Trending (i.e. hot topic) – More frequently appear in User and user’s friends tweets/retweets – Hot Hashtag may be cited by many tweets. – Replied by many people.
  • 16. Use of Twitter API • Jtwitter A small library providing easy access to the Twitter API http://www.winterwell.com/software/jtwitter.php • Twitter – getFriendsTimeline() • Twitter.Status – id – inReplyToStatusId
  • 17. Demo • Scenario: Ye 1. Hello, I am fresh. Aries Jane 1. #Finalexam is 2. @Aries Good 1. Welcome, fresh~ coming. Luck on your finals 2. @Ye I took a long 3. On, My 2. Yes, I am. So to prepare Algorithm #finalexam is where are you from? 3. @Ye Dijkstra coming too, sad~ 3. Tomorrow go to Algorithm is important! 4. @Jane Tks, Jane. DisneyLand! 4. Reviewing Prim’s Are you fresh,too? 4. DisneyLand is a Algorithm 5. @Jane I am a magical place!! 5. Reviewing Bread- Chinese, you? First Algorithm 5. @Ye I am also a 6. @Jane I am glad Chinese. 6. Reviewing Depth- to! See you~ 6. @Ye All Chinese will go Firest Algorithm 7. @Aries How do to play in Disneyland, 7. Reviewing NP- wanna join us? you prepare? Any complete tips? 7. Doing Homework~
  • 18. Tweet Graph Aries Ye Jane 1 1 1 2 3 2 2 3 4 3 4 4 5 5 5 6 6 6 7 7 7
  • 19. Limitation • Twitter Limit Rate – Twitter API only allows clients to make a limited number of calls in a given hour. – API Requests: 150 per hour. • Common Words Elimination Small corpus for Common Words (60) • Top Treading is based on single words. – Better use phrase
  • 20. Conclusion • Propose a concept of Tweet Rank • Implement this concept with Tweet Graph • Rank terms with term frequency and Tweet Rank • Calculate Top Trending of friends for a particular user – A feature that current Twitter doesn’t have – Potential business: show relevant ad based on top trending of friends