LDA Topic Modeling of Independence Day Speeches by Prime Ministers of India and Pakistan

Sumit Puri
1 min readAug 15, 2019

--

India and Pakistan celebrated their Independence Day on August 15th and 14th, respectively. Shri Narendra Modi, Prime Minister of India and Shri Imran Khan, Prime Minister of Pakistan addressed their countries on their respective historic days.

A Prime Minister’s Independence Day speech lays out their vision for the country and their men. The transcription of the speeches by both the leaders is available here:

Speech by Narendra Modi, Prime Minister of India
Speech by Imran Khan, Prime Minister of Pakistan

This article show the results of the Latent Dirichlet Allocation (LDA) Algorithm for Topic Modeling as applied to transcripts of speeches by both the leaders and compares the dominant topics of both.

Result:

Topic Modeling and comparison of speeches by Prime Ministers of India and Pakistan

References

Topic Modeling with Gensim (Python)
Topic Modeling Visualization

Source code used for the above Topic Modeling of speeches is provided below.

--

--