NLP

Finding themes in social conversation

Exploring ten discussion themes in December 2017 #MeToo tweets through unsupervised topic modeling.

Exploring a large collection without predefined labels

This project used unsupervised topic modeling to explore recurring language in a collection of December 2017 #MeToo tweets. Instead of assigning posts to categories in advance, the LDA model learned ten statistical groups of words from the prepared text.

Text preprocessing, dictionary filtering, and a bag-of-words representation created the model inputs. The resulting term weights, word clouds, and dominant-topic distribution offer complementary views: what words characterize a topic, and how often a topic receives the strongest assignment in the processed collection. Human interpretation supplies the descriptive themes.

Bar chart of ten inferred topics in the MeToo tweet collection, with topic 1 receiving the most assignments.
Counts of dominant topic assignments after preprocessing. The most prominent topic receives substantially more assignments than the others.

The work

Prepared tweets for analysis, created a filtered dictionary and bag-of-words corpus, and trained a ten-topic LDA model with Gensim.

The output

Topic word clouds and a distribution chart showed a dominant theme around the movement and shared stories, alongside political discussion, media reactions, and personal reflections.

View code on GitHub ↗

Explore the ten topics

Select a topic to inspect its saved terms and weights. Larger weights indicate stronger representation within that topic, not the percentage of people who hold an opinion. Compare several topics before reading the word cloud and distribution chart. Topic numbers are identifiers, and these results are neither sentiment scores nor a representative summary of everyone involved in the movement.

Terms and model weights
TermWeight
like0.06
know0.056
little0.038
get0.024
many0.024
part0.02
sex0.017
yes0.015
see0.015
someone0.015
real0.014
could0.013
old0.013
next0.012
support0.012
Word cloud for topic 1, with movement, story, and men among the prominent terms.
Source topic 1 emphasizes movement, story, and men. Word size summarizes term weights; interpreting the theme requires human judgment.
All projects