Fast Twitter Emotion Detection

Fast Twitter Emotion Detection

Twitter Emotion PL (base) is a Polish-language emotion classification model built on top of herbert-base. It distinguishes between four emotions commonly found in social media: joy, optimism, sadness, and anger.

Trained on a translated version of the TweetEval dataset, it delivers strong performance across all key metrics (F1 macro: 0.756, accuracy: 0.789) and processes over 130 tweets per second on a single RTX 3090 (base version).

This model is well-suited for applications in media monitoring, opinion analysis, and research on online discourse in Polish.

How to use

from transformers import pipeline
nlp = pipeline("text-classification", model="bardsai/twitter-emotion-pl-base")
nlp("Nigdy przegrana nie sprawila mi takiej radosci.")
{'label': 'joy', 'score': 0.5163766145706177}

Performance Metrics

MetricValue
F1 Macro0.756
Precision0.767
Recall0.750
Accuracy0.789

FAQs

Looking to integrate AI into your
product or project?

Get a Free consultation with our AI experts.

Book a free consultation