Downloads · 30 days
3
11% of all-time downloads
andreasvc/segue-meld-multitask
segue-meld-multitask is a machine learning model from andreasvc. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a fine-tuned version of declare-lab/segue-w2v2-base trained jointly on sentiment (3-class) and emotion (7-class) recognition on the MELD dataset (Friends TV show dialogues).
Downloads · 30 days
3
11% of all-time downloads
All-time downloads
27
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pt1.3 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of declare-lab/segue-w2v2-base trained jointly on sentiment (3-class) and emotion (7-class) recognition on the MELD dataset (Friends TV show dialogues).
Sentiment: neutral, positive, negative
Emotion: neutral, surprise, fear, sadness, joy, disgust, anger
| Task | Weighted F1 | Macro F1 |
|---|---|---|
| Sentiment | 0.558 | 0.519 |
| Emotion | 0.475 | 0.273 |
This model depends on the declare-lab/segue repository, which is not pip-installable. You need to clone it and add it to your path:
git clone https://github.com/declare-lab/segue
# run your scripts from inside the segue/ directory, or:
import sys; sys.path.append('/path/to/segue')
Download model.pt and inference.py from this repository, then:
from inference import load_segue_multitask, segue_predict
model, processor = load_segue_multitask("model.pt")
sent_probs, emo_probs = segue_predict(model, processor, audio_array, sampling_rate=16000)
declare-lab/segue-w2v2-base