yonshimelis/Analyzing_political_rhetoric

Repository for our final NLP project

1

stars

97

commits

Python

primary language

Dec 28, 2025

updated

README

DATS6312 - Analyzing Presidential Rhetoric and Political Polarization

About

This project analyzes U.S. presidential speeches to study how rhetoric, emotion, and political tone have evolved over time. Using Natural Language Processing (NLP) methods, the goal is to measure sentiment, identify key topics, and explore whether language has become more unifying or divisive across different presidents and political parties.


Methods

  • Sentiment Analysis: Transformer,
  • Topic Modeling: Latent Dirichlet Allocation (LDA), Gensim, NMF
  • Classification: TFIDF Logistic Regression, LSTM , DistilBERT
  • Interpretability: SHAP, LIME (Future Implementation)

Dataset


Tools

Python, pandas, numpy, nltk, spacy, scikit-learn, gensim, tensorflow, matplotlib, seaborn, pyLDAvis, shap, lime


Authors

Yonathan Shimelis
M.S. Data Science
The George Washington University

Sayan Patra
M.S. Data Science
The George Washington University


License

This project is licensed under the MIT License — see the LICENSE file for details.


Contributors

yonshimelis

59 commits

Sayanpatraa

38 commits

yonshimelis/Analyzing_political_rhetoric

Repository for our final NLP project

1

stars

97

commits

Python

primary language

Dec 28, 2025

updated

README

DATS6312 - Analyzing Presidential Rhetoric and Political Polarization

About

This project analyzes U.S. presidential speeches to study how rhetoric, emotion, and political tone have evolved over time. Using Natural Language Processing (NLP) methods, the goal is to measure sentiment, identify key topics, and explore whether language has become more unifying or divisive across different presidents and political parties.


Methods

  • Sentiment Analysis: Transformer,
  • Topic Modeling: Latent Dirichlet Allocation (LDA), Gensim, NMF
  • Classification: TFIDF Logistic Regression, LSTM , DistilBERT
  • Interpretability: SHAP, LIME (Future Implementation)

Dataset


Tools

Python, pandas, numpy, nltk, spacy, scikit-learn, gensim, tensorflow, matplotlib, seaborn, pyLDAvis, shap, lime


Authors

Yonathan Shimelis
M.S. Data Science
The George Washington University

Sayan Patra
M.S. Data Science
The George Washington University


License

This project is licensed under the MIT License — see the LICENSE file for details.


Contributors

yonshimelis

59 commits

Sayanpatraa

38 commits

Languages

Python

80.5%

Jupyter Notebook

19.5%