Skip to content

prathamgupta36/Lyrical-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyrical Sentiment Analysis

Python Version Tensorflow Version Keras Version Pypi Version Selenium

Overview

Lyrical Sentiment Analysis in Python using Natural Language Processing(NLP) with the help of Mediapipe. This project focuses on sentiment analysis of song lyrics to identify positive and negative sentiments, employing advanced NLP and machine learning techniques. We have incorporated Google's MediaPipe framework specifically for enhancing the processing capabilities of our BERT model, previously leveraging only TensorFlow and Transformers from Hugging Face.

Key Features

  • Data Collection: Scraping the top songs from various online databases.
  • Preprocessing: Standardizing data by removing special characters and tokenizing text.
  • Sentiment Analysis: Using BERT model enhanced with MediaPipe for improved feature extraction and faster processing.
  • Visualization: Displaying data insights through interactive charts and graphs.

MediaPipe Integration

MediaPipe offers state-of-the-art machine learning solutions for media processing. In this project, we use MediaPipe to optimize our BERT model, enhancing its ability to process and analyze lyrical content efficiently. This integration allows for real-time analysis and increased accuracy in sentiment classification.

Requirements

To start the scraping process we need to get the requirement for the scarping.

pip install -r requirements.txt

To update the webdriver after we import all the required files with the command bellow:

pip install --upgrade webdriver-manager

UI

Classical Machine Learning Model UI

Download these file from the project:

Then in the folder where the files are saved then do:

streamlit run streamer.py

This should open up a webui on your machine where you can input lyrics and see the sentiment.

UI for Both

Download these file from the project:

Then in the folder where the files are saved then do:

streamlit run streamer_bert.py

This should open up a webui on your machine where you can input lyrics and see the sentiment.

Contributors

Acknowledgements

  • Arizona State University, School of Computing and Augmented Intelligence
  • TensorFlow, Hugging Face for the initial model frameworks
  • Google MediaPipe for the enhanced processing tools

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published