Skip to content

christinahyc/fall2017-project1-christinahyc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Are speeches given by presidents become simpler?

plus: what may Trump say based on his previous addresses? (Fun Part)

Following Thoughts of Fall 2017 Project 1: What did the presidents say at their inauguation?

No! it's not just an assignment!

image

This is the first and only individual (as opposed to team) this semester(Fall 2017).

Project Conductor

Christina Huang

Project Summary

After analysis of speeches' sentence length in the class, I was wondering whether there is any scientific index to measure the complexity of speeches. After going through wiki, I found out that we can use Fresch-Kincaid Reading Ease Score to make the comparison more translatable. Thus I downloaded txt files of addresses from this site, since it contains more text than the dataset given in class. I used package quanteda to calculate Fresch-Kincaid Reading Ease Score and visualized the result in a interactive graph.

WHAT I FOUND

I observed a very obvious trend that complexity of recent speeches is less than that of previous speeches. In other words, speeches become simpler. Is that because of the revolution of technology to spread infomation? Or presidents are targeting to more people including those who cannot get higher education? If given more time, maybe we can connect this find with more social science features.

image

Something just for FUN -- Text Generation Model for "Trump's words"

I tried to generate sentences that "sound like" given by Trump. This LSTM text generation model is based on keras. Running this script takes TONS of time, so please DO NOT consider that into evaluation of "Reproducibility". After 40 epochs, it will provide some really interesting result (something like "i want to be the world", yet sometime it gets overfitting). The training data is from here.

Intersting Result

Author

Please feel free to contact me through [email protected]

Project Directory

Following suggestions by RICH FITZJOHN (@richfitz). This folder is orgarnized as follows.

proj/
├── lib/
├── data/
├── doc/
├── figs/
└── output/

Please see each subfolder for a README file.

About

Text Analysis of Presidents' speeches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%