Skip to content

Lyric Emotion Analysis for Mood-Based Music Recommendation

Notifications You must be signed in to change notification settings

mscoop16/spotify_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyric Emotion Analysis for Mood-Based Music Recommendation

Using an NLP for emotions dataset to train a variety of models on song lyric emotion content prediction. Includes applications for song recommendations based on an input song's emotional content.

File Descriptions

Data on emotions NLP dataset and Spotify songs available in data folder. Fine tuned BERT model and Naive Bayes model class for emotion classification available in model folder. Data preprocessing on emotions NLP dataset contained within emotions_dataset_tfidf.py. Files for the recommender classes are in bert_recommender.py and naive_bayes_recommender.py. Training and test of models and running of recommender done in train_and_test_EmotionsNB.py and train_and_test_EmotionBERT.py

Setup

  1. Clone the repository
     git clone https://github.com/mscoop16/spotify_project.git
  2. Setup python virtual environment and install packages
     pip install -r requirements.txt
  3. If attempting to run flask server, switch to frontend branch
  4. Make binary into executable and run to start flask server
     chmod +x bin/487run
    ./bin/487run

Usage

After setting up, you can use this application at https://localhost:8000. Enter a song title and the number of recommendations you would like to recieve in the form and press submit.

Matthew Cooper, Pratik Nadipelli

About

Lyric Emotion Analysis for Mood-Based Music Recommendation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published