Coder Social home page Coder Social logo

ankiefan / dacs-elevator-radio-producer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47.86 MB

Find the topics of lyrics in the top 100 songs and analyze how they change over time by clustering the topics of each song and visualizing the clustering results.

Python 4.56% Jupyter Notebook 95.44%

dacs-elevator-radio-producer's Introduction

DACS-Elevator-Radio-Producer

Find the topics of lyrics in the top 100 songs and analyze how they change over time by clustering the topics of each song and visualizing the clustering results.

How to use

Create a new conda virtual environment (cmd)

conda create -n nlp_project7 python=3.9
conda activate nlp_project7

Install all relied libraries (cmd)

pip install -r requirements.txt

Change the Genius API key and Spotify API keys in data/base.py and data/from_spotify.py

DEMO

In the demo you can try the functions by changing address to a specific year, or the ID of a Spotify playlist.

Dataset

Datasets are gathered from the APIs. Some playlists and year hot 100 songs are already generated and checked(manually check if the lyrics are right) in dataset folder.

Proposal

Motivation

The success of a pop song depends on many factors. Although the music charts are constantly changing, the keywords and underlying meanings included in the songs are limited, such as emotions, social issues, self and cultural identity, etc. We want to design a model that analyzes lyric themes to classify the theme of popular songs. We are curious whether the distribution of these topics in the list is immutable or changes in some way.

Basic idea:

  1. Get the hottest 100 songs for a year and their lyrics(optional: a playlist from user input)
  2. Get a topic for each song (TF-IDF, KeyBERT)
  3. Cluster the topics for 100 songs this year (word2vec, k-means)
  4. Visualize the clustering results of each year (PCA, plot)

Evaluation Metrics

C_umass: a combined metric of combines document co-occurrence counts, one-preceding segmentation, and logarithmic conditional probability (Mifrah and Benlahmar, 2020). Cosine Similarity: a score based on the sentence embeddings generated from the ’all-mpnet-base-v2’ model, employing the SBERT SentenceTransformers library (Reimers and Gurevych, 2019) to encode both the title and relevant keywords into their respective embeddings.

dacs-elevator-radio-producer's People

Contributors

ankiefan avatar isayj avatar zijiandongkurt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.