Topic Modeling



No file uploaded.Loading data...
Model loaded successfully.
KMeans model fitted successfully.

First 10 Keywords:
['economic policy', 'foreign affairs', 'national security', 'civil rights', 'social justice', 'tax reform', 'health care', 'immigration law', 'gun control', 'climate change']

Nearest keyword to cluster centroid:
('political party', 0.5239064955513765)
('minority rights', 1.3237554827534084)
('national debt', 0.38846646632701837)
('air quality', 1.290006648763049)
('social media', 0.7016570483153224)

Top TF-IDF scores on each cluster:
Cluster 0:
(http,15.30) (night,9.06) (https,8.03) (trump,7.44) (amp,6.63) (debate,5.89) (gop,5.85) (like,4.76) (just,4.36) (foxnews,3.99)
Cluster 1:
(rt,3.61) (foxnews,3.48) (realdonaldtrump,2.76) (night,2.34) (kelly,1.82) (megyn,1.75) (trump,1.73) (tonight,1.62) (did,1.50) (donaldtrump,1.38)
Cluster 2:
(http,21.78) (trump,8.50) (https,7.42) (realdonaldtrump,6.97) (night,4.86) (debate,4.66) (like,4.45) (carlyfiorina,4.36) (donald,4.32) (gop,3.66)
Cluster 3:
(trump,2.55) (https,2.22) (http,1.98) (news,1.91) (night,1.83) (fox,1.76) (just,1.75) (debate,1.60) (govmikehuckabee,1.53) (did,1.51)
Cluster 4:
(http,3.87) (trump,3.83) (amp,3.26) (just,3.22) (like,3.07) (night,2.77) (foxnews,2.56) (realdonaldtrump,2.55) (cruz,2.27) (women,2.25)

Nearest keyword to comment:
('RT @NancyLeeGrahn: How did everyone feel about the Climate Change question last night? Exactly. #GOPDebate', 'political debate', 1.5450833)
("RT @ScottWalker: Didn't catch the full #GOPdebate last night. Here are some of Scott's best lines in 90 seconds. #Walker16 http://t.co/ZSfF…", 'political debate', 2.0660381)
('RT @TJMShow: No mention of Tamir Rice and the #GOPDebate was held in Cleveland? Wow.', 'health care', 1.232261)
("RT @RobGeorge: That Carly Fiorina is trending -- hours after HER debate -- above any of the men in just-completed #GOPdebate says she's on …", 'election security', 2.159609)
('RT @DanScavino: #GOPDebate w/ @realDonaldTrump delivered the highest ratings in the history of presidential debates. #Trump2016 http://t.co…', 'health care', 1.1119955)
('RT @GregAbbott_TX: @TedCruz: "On my first day I will rescind every illegal executive action taken by Barack Obama." #GOPDebate @FoxNews', 'middle class', 2.9707947)
('RT @warriorwoman91: I liked her and was happy when I heard she was going to be the moderator. Not anymore. #GOPDebate @megynkelly https://…', 'national security', 2.3897524)
('Going on #MSNBC Live with @ThomasARoberts around 2 PM ET. #GOPDebate', 'corporate tax', 1.5281752)
('Deer in the headlights RT @lizzwinstead: Ben Carson, may be the only brain surgeon who has performed a lobotomy on himself. #GOPDebate', 'political party', 1.3115941)
("RT @NancyOsborne180: Last night's debate proved it! #GOPDebate #BATsAsk @BadassTeachersA #TBATs https://t.co/G2gGjY1bJD", 'border control', 1.2003618)