Downloads · 30 days
16
3% of all-time downloads
MicahB/emotion_text_classifier
emotion_text_classifier is a text classification model from MicahB. Use it when you need a label for a piece of text. It is set up for transformers.js.
DistilRoBERTa-base is a transformer model that performs sentiment analysis. I fine-tuned the model on transcripts from the Friends show with the goal of classifying emotions from text data, specifically dialogue from…
Downloads · 30 days
16
3% of all-time downloads
All-time downloads
459
Public
Repo size
411 MB
Likes
0
Public
Click a slice to open those files.
.onnx411 MB · 99%
From the Hugging Face model README
DistilRoBERTa-base is a transformer model that performs sentiment analysis. I fine-tuned the model on transcripts from the Friends show with the goal of classifying emotions from text data, specifically dialogue from Netflix shows or movies. The model predicts 6 Ekman emotions and a neutral class. These emotions include anger, disgust, fear, joy, neutrality, sadness, and surprise.
The model is a fine-tuned version of Emotion English DistilRoBERTa-base and DistilRoBERTa-base. This model was initially trained on the following table from Emotion English DistilRoBERTa-base:
| Name | anger | disgust | fear | joy | neutral | sadness | surprise |
|---|---|---|---|---|---|---|---|
| Crowdflower (2016) | Yes | - | - | Yes | Yes | Yes | Yes |
| Emotion Dataset, Elvis et al. (2018) | Yes | - | Yes | Yes | - | Yes | Yes |
| GoEmotions, Demszky et al. (2020) | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| ISEAR, Vikash (2018) | Yes | Yes | Yes | Yes | - | Yes | - |
| MELD, Poria et al. (2019) | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| SemEval-2018, EI-reg, Mohammad et al. (2018) | Yes | - | Yes | Yes | - | Yes | - |
It was fine-tuned on:
| Name | anger | disgust | fear | joy | neutral | sadness | surprise |
|---|---|---|---|---|---|---|---|
| Emotion Lines (Friends) | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
const { pipeline } = await import('@xenova/transformers');
// Allocate pipeline
const pipe = await pipeline('text-classification', 'MicahB/emotion_text_classifier');
console.log(await pipe("womp womp"));
Output:
[{'label': 'joy', 'score': 0.9887555241584778}]
Please write into the discussion on this model if you have any questions or feedback.
Jochen Hartmann, "Emotion English DistilRoBERTa-base". https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/, 2022.
Ashritha R Murthy and K M Anil Kumar 2021 IOP Conf. Ser.: Mater. Sci. Eng. 1110 012009