Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.13 KB

File metadata and controls

43 lines (26 loc) · 1.13 KB

Jakarta-PilGub-TfIdf-Tweet-Analysis

a simple tweet analysis by TfIdf

I collect data from twitter using tweepy

https://twitter.com/agussylvidki

https://twitter.com/ahokdjarot

https://twitter.com/jktmajubersama

Requirement:

Python (2.7)

Supporting Library

Scikit-Learn(0.18) , Pandas (0.18.1) , Matplotlib (1.5.1), Seaborn (0.7.1)

AgusSylvi 20 most tweet agussylvi

AhokDjarot 20 most tweet ahokdjarot

AniesSandi 20 most tweet aniessandi

next feature

  • count tweet per day
  • most user tweet / Paslon (added)

tf idf simple expalation with excel http://lsirwww.epfl.ch/courses/dis/2006ws/exercises/IR/Exercise8.htm

I adapt this code from https://www.kaggle.com/diekanugraha/d/mousehead/songlyrics/tf-idf-weighted-artist-s-favorite-word and do some modification

and code for crawling https://gist.github.com/yanofsky/5436496