This project uses the Vader module of the Natural Learning Toolkit to conduct sentiment analysis on the lyrics of different Fall Out Boy albums over time. While this project focuses on Fall Out Boy, the functions would work on any other band or artist whose lyrics are on AZ Lyrics where this project sources lyrics from. This is the second project in Olin's Software Design course.
This project was built using the following libraries:
To get a local copy up and running follow these steps.
- Clone the repo
git clone https://github.com/MayaSimone/song_sentiment_analysis.git- Install the Requests library
$ python -m pip install requests- Install the Beautiful Soup library
$ apt-get install python3-bs4- Install the Natural Learning Toolkit
$ pip install --user -U nltk*Note the Natural Learning toolkit will also require you to run the following code in a Python interpretter in order to use the Vader Module.
nltk.downloader.download('vader_lexicon')Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.