Skip to content

Materials for the Spring 2021 MIT Political Methodology Lab "Introduction to Text Analysis" Workshop

License

Notifications You must be signed in to change notification settings

milliff/text-as-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Text Analysis

MIT PML Workshops Spring 2021

Materials for the Spring 2021 MIT Political Methodology Lab "Introduction to Text Analysis" Workshop, taught by Andy Halterman and Aidan Milliff.

Contents

  • text_analysis.Rmd: Code (and explanation) for the text analysis demos. We cover 1) sentiment analysis using sentiment dictionaries and tidytext, 2) topic modeling with stm, and 3) regularized logit classification with glmnet.
  • stm.RData: Loads a fitted STM model to save us time (and keep results consistent) during the workshop.
  • text_analysis_slides.pdf: The slides!

Notably missing: train.csv, the data we use in the demos. Register here to get that file via email.

About

Materials for the Spring 2021 MIT Political Methodology Lab "Introduction to Text Analysis" Workshop

Topics

Resources

License

Stars

Watchers

Forks