Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/innerdoc/christmas-lyrics-emotion-detector

Detect Emotions on Christmas Lyrics with Zero-shot Emotion Classification. With the help of Streamlit and Plotly.
https://github.com/innerdoc/christmas-lyrics-emotion-detector

emotion-detection emotion-recognition natural-language-processing plotly plotly-python plutchik streamlit streamlit-webapp transformers zero-shot-classification

Last synced: 17 days ago
JSON representation

Detect Emotions on Christmas Lyrics with Zero-shot Emotion Classification. With the help of Streamlit and Plotly.

Awesome Lists containing this project

README

        

# Christmas Lyrics Emotion Detector

[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://www.innerdoc.com/christmas-lyrics-emotions-demo/) [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow%20%40innerdoc)](https://twitter.com/innerdoc_nlp)

![alt text](christmas-lyrics-emotion-detector-post.png)

## About
This *Christmas Lyrics Emotion Detector* is created by [Rob van Zoest](https://www.linkedin.com/in/robvanzoest/) and started with the idea for a fun pre-christmas project:
- The **code** is available on [github.com/innerdoc](https://github.com/innerdoc/christmas-lyrics-emotion-detector)
- The **emotions** were taken from [Plutchik's wheel of Emotions](https://en.wikipedia.org/wiki/Robert_Plutchik)
- The **data** was generated with the help of *Zero-shot emotion classification* with [Transformers from Huggingface](https://joeddav.github.io/blog/2020/05/29/ZSL.html)
and this [Colab Notebook](https://colab.research.google.com/drive/1gcJq-6YXGca7i_8XUfq9z08MU_EWlkSd)
- The **interface** is build with the help of [Streamlit](https://www.streamlit.io/) and [Plotly](https://plotly.com/python/)

## The result
[Open the demo app!](https://www.innerdoc.com/christmas-lyrics-emotions-demo/)

Below an example of the App.

![alt text](christmas-lyrics-emotion-detector-streamlit.png "An example view of the Christmas Lyrics Emotions Detector App")

## Install and run
```
pip install -r requirements.txt
streamlit run christmas_lyrics_emotion_detector.py
```