Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

#Hillary's Inbox: A text analysis of (a subset of) emails sent and received by Hillary Clinton on her private server

Final writeup:

This is the set of scripts I used to analyze Hillary Clinton's released emails during her time as secretary of state. I've included not only my scripts, but my results as well, including the results of running a latent direct allocation analysis and k-means clustering. I also took a look at vocabulary differences between different groups of people (males vs females, ambassadors vs staffers) and included the results of that analysis as well.

As per the final project specifications, here's a brief description of what each script does:

  • - does the k-means analysis
  • - creates context vectors for a document. Added onto functionality coded for A5 to output dictionary with word frequencies as well.
  • - analyzes a document and returns number of tokens and sentences, as well as average sentence and word length.
  • - takes two csv files and outputs a dictionary of the difference between both sets (words that appear in one dictionary but not the other)
  • - computes tf-idf for each document.
  • - sorts emails by time and returns statistics about average length of email per hour
  • - performs LDA analysis on corpus
  • - calculates ngrams for document.
  • - queries database for emails matching criteria like emails from a certain senderID or getting all emails from members of a category.
  • - helper funtions used throughout other files.


Final project for CS349: Natural Language Processing.



No releases published


No packages published


You can’t perform that action at this time.