Text Mining: TF-IDF & Sentiment Analysis

tidytext shiny ggplot2 rvest NLP

Tidy text analysis of India PM’s radio addresses in a shiny app

Every month the Indian Prime Minister Narendra Modi gives a radio address to listeners. I collected those speeches with rvest and created a shiny app to allow users to explore different aspects of the corpus, such as word frequencies, sentiment, and TF-IDF. Find the app at the link below:


You can also find its Github repo.

Related to this project, I also wrote a short post introducing the tidytext package found on the Social Cops blog.


Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".