declare-lab/MELD
Updated • 1.95k • 16
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-baseBase model
declare-lab/segue-w2v2-base