Skip to content

vanessa920/nlp_hillary_email

Repository files navigation

Inside Hillary Clinton's Emails

Throughout 2015, Hillary Clinton has been embroiled in controversy over the use of personal email accounts on non-government servers during her time as the United States Secretary of State. Some political experts and opponents maintain that Clinton's use of personal email accounts to conduct Secretary of State affairs is in violation of protocols and federal laws that ensure appropriate recordkeeping of government activity. Hillary's campaign has provided their own four sentence summary of her email use here.

There have been a number of Freedom of Information lawsuits filed over the State Department's failure to fully release the emails sent and received on Clinton's private accounts. On Monday, August 31, the State Department released nearly 7,000 pages of Clinton's heavily redacted emails (its biggest release of emails to date).

The documents were released by the State Department as PDFs. Kaggle cleaned and normalized the released documents and are hosting them for public analysis. I focused on the Emails that sent by Hillary Clinton. Kaggle Dataset


NLP Methodology

  1. Text Pre-processing: Regex text cleaning, Tokenization, Lemmentization and text vectorization with TF-IDF

  2. Topic Modeling: Topic Modeling: pyLDA, CorEx, K-Mean Cluster, Gensim Word2Vec

  3. SQL Queries: Use SQLite create new tabless to further explore Hillary's network

  4. Combining All Together: Focus on three topics with pyLDA and Sentiment Analysis using NLTK Vader and TextBlob to conduct Sentiment Analysis

  5. Tableau Story: Use Tableau for visualization and tell a good story

Key Take Aways

  • Negative sentiment score in emails actually indicates closer relationship
  • Including corpus documents to view when doing topic modeling could be really helpful just viewing the keywords
  • Tableau works really well with multi-dimentional visualization

Presentation Slides

Tableau Gallery

About

NLP Topic Modeling and Sentiment Analysis on Hillary Clinton's emails. This NLP project focused on the emails sent by Hillary. Click the link to view the visualization at Tableau public gallery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published