VU-HPC: Text analysis in R

Monday 5 november I will teach a course on Text Analysis in R at the VU.

To prepare, please install R and Rstudio on your laptop. If you are interested, you can read our recent article on text analysis in R and/or some introductory materials on learning R.

Location: WN-C203
Time: 9:00 – 13:00 (approx)

Data: [github] [meta.rds] [articles.rds] [tokens.rds]

Program:

  • Session I: Introduction [slides]
    • DTM’s in R
    • Dictionary analysis with AmCAT and/or quanteda
  • Session II: Corpus Analysis [slides]
    • Simple NLP
    • Corpus analysis and visualization
    • Topic modeling

To install all packages used in the example code, you can run the following commands in R:

install.packages(c("devtools", "corpustools", "quanteda", "topicmodels", "ggplot2", "LDAvis", "slam"))
devtools::install_github("amcat/amcat-r")
devtools::install_github("vanatteveldt/nlpiper")

Link to the visualization presentation