Run this model with HF Jobs

Run bamnlp/emotionhub-deberta-v3-base-full-po-emo-reader on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/bamnlp/emotionhub-deberta-v3-base-full-po-emo-reader. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/bamnlp/emotionhub-deberta-v3-base-full-po-emo-reader on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

PO-EMO (reader): all labels

Emotion classifier from emotionanalysis.de, University of Bamberg (BamNLP). Weights in float16. Base model: microsoft/deberta-v3-base. Multi-label: one probability per emotion; an emotion is predicted if its probability reaches the tuned threshold (anger 0.50, fear 0.10, joy 0.40, sadness 0.35, nostalgia 0.35, suspense 0.15).

The labels are all labels of the corpus: the shared emotion labels of emotionanalysis.de plus the corpus's own labels that have no counterpart in the shared set, named as in the corpus.

  • Labels: anger, fear, joy, sadness, nostalgia, suspense
  • Languages: de, en
  • Validation macro-F1: 0.404
  • Trained on (seed 13):
  • PO-EMO (reader): Haider, Eger, Kim, Klinger, Menninghaus (2020). PO-EMO: Conceptualization, Annotation, and Modeling of Aesthetic Emotions in German and English Poetry. LREC.

Use

A sigmoid over the logits gives one probability per emotion; an emotion is predicted if it reaches its threshold in card.json, and if none does, the most probable one.

import json, torch
from huggingface_hub import hf_hub_download
from transformers import AutoModelForSequenceClassification, AutoTokenizer

repo = "bamnlp/emotionhub-deberta-v3-base-full-po-emo-reader"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo).float().eval()
card = json.load(open(hf_hub_download(repo, "card.json")))  # labels and tuned thresholds

texts = ["I finally got the letter of acceptance!", "They lied to us, again."]
batch = tokenizer(texts, padding=True, truncation=True, max_length=256, return_tensors="pt")
with torch.no_grad():
    probs = torch.sigmoid(model(**batch).logits)
for text, p in zip(texts, probs):
    emotions = [l for l, x in zip(card["labels"], p) if x >= card["thresholds"][l]]
    print(text, emotions or [card["labels"][int(p.argmax())]])  # at least the most probable one

License

Model weights: CC BY 4.0. Please cite the papers of the training corpora above.

Downloads last month
3
Safetensors
Model size
0.2B params
Tensor type
F16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for bamnlp/emotionhub-deberta-v3-base-full-po-emo-reader

Finetuned
(871)
this model