Python script for analyzing moral values via Natural Langauge Processing (NLP) & the Latent Dirichlet Allocation (LDA) method for topic modeling.
I wrote this script for my graduate thesis. The script:
- identifies the ten most salient topics of the Moral Values list
- classifies the topics according to a single value from the Moral Values list
- produces a frequency distribution for the ten most used values in the Moral Values list
The script was written with the help of:
Jablonski, J. (2021, May 5). Natural Language Processing With Python's NLTK Package. Real Python. https://realpython.com/nltk-nlp-python/#making-a-frequency-distribution
Kelechava, M. (2019, March 3). Using LDA Topic Models as a Classification Model Input. Towards Data Science. https://towardsdatascience.com/unsupervised-nlp-topic-models-as-a-supervised-learning-input-cf8ee9e5cf28
Li, S. (2018, May 31). Topic Modeling and Latent Dirichlet Allocation (LDA) in Python. Towards Data Science. https://towardsdatascience.com/topic-modeling-and-latent-dirichlet-allocation-in-python-9bf156893c24