Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Running RoBERTa sentiment analysis on song lyrics and merging with Spotify Audio Features

License

Notifications You must be signed in to change notification settings

styounessi/album_sentiment_spotify

Repository files navigation

Album Sentiment & Spotify Audio Features

Measuring the emotional qualities of an album using Spotify Track Audio Features with lyrical sentiment analysis via RoBERTa. The data is gathered, processed, and merged in a .py file and then used in a Jupyter Notebook to build a summary presentation.

Technologies Used

You can install any of the required libraries using pip like in the example below.

pip install pandas

You will also need access to the Spotify and Genius APIs.

Any suitable model can be used from 🤗 Hugging Face with some modifications but j-hartmann/emotion-english-distilroberta-base is used in this case.

Power, Corruption, & Lies by New Order

PCL by New Order album art

The album used is Power, Corruption & Lies by New Order. The original track list is used with these eight tracks:

  1. Age of Consent
  2. We All Stand
  3. The Village
  4. 5 8 6
  5. Your Silent Face
  6. Ultraviolence
  7. Ecstasy
  8. Leave Me Alone