Open Source Release

Fast Twitter Emotion Detection

Emotion classification model for Polish tweets. Detects joy, optimism, sadness, and anger with high accuracy and speed.

Fast Twitter Emotion Detection

// About

What it is

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

Drop-in Python snippet

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

// Performance

Evaluation metrics

  • F1 Macro

    0.756

  • Precision

    0.767

  • Recall

    0.750

  • Accuracy

    0.789

// Need a model like this?

We build production models. Then we open-source the useful ones.

Book a meeting