Skip to content

NLP analysis & visualization of 80,000 text messages. (Recurse)

Notifications You must be signed in to change notification settings

teresaibarra/texts

Repository files navigation

Analyzing a relationship's text messages

This project aims to visualize emotional and thematic trends and provide insight about personal relationship dynamics. This code can be used as a exploration tool for navigating the nuance of digital communication and understanding the biases that can emerge from machine learning analysis.

Screenshot of Visualization

Features

  • Pretty comprehensive analysis: Analyzes 80,000 text messages exchanged over the span of a relationship with natural language processing techniques.
  • Trained topic model: Uses a Biterm topic model specifically trained on the dataset.
  • Sentiment analysis: Runs sentiment analysis on all messages to gauge emotional trends.
  • Visualization: Results are visualized using Observable Plot, and the static site is generated with Observable Framework.
  • DIY-friendly: See the "Using your own data" section.
  • Live demo: Check out the live demo here.

Running locally

Clone this repo and execute:

npm run dev

Using your own data

You can adapt this code by running the Python scripts provided in the utils folder. Check out the README for more information.

Credits

  • This project was created during my time at the Recurse Center in Spring 2024.
  • Thanks to all the folks who paired with me on this project at RC!
  • Special thanks to my ex in their support of this project.

About

NLP analysis & visualization of 80,000 text messages. (Recurse)

Resources

Stars

Watchers

Forks