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.

Base: https://huggingface.co/bardsai/twitter-emotion-pl-base

Fast: https://huggingface.co/bardsai/twitter-emotion-pl-fast

How to use

You can use this model directly with a pipeline for text classification:

from transformers import pipeline

nlp = pipeline("text-classification", model="bardsai/twitter-emotion-pl-base")
nlp("Nigdy przegrana nie sprawiła mi takiej radości. Szczęście i Opatrzność mają znaczenie Gratuluje @pzpn_pl")
[{'label': 'joy', 'score': 0.5163766145706177}]

Performance

Base

Metric

Value

f1 macro

0.756

precision macro

0.767

recall macro

0.750

accuracy

0.789

samples per second (RTX 3090)

131.6

Fast

Metric

Value

f1 macro

0.692

precision macro

0.700

recall macro

687

accuracy

0.737

samples per second

255.2

Enough reading! Let’s talk.
Our team is ready to support you in delivering Custom AI Solutions.

Enough reading! Let’s talk.
Our team is ready to support you in delivering Custom AI Solutions.

Enough reading! Let’s talk.
Our team is ready to support you in delivering Custom AI Solutions.

FAQs

How can I evaluate the potential of custom AI solutions?

How can I evaluate the potential of custom AI solutions?

How can I evaluate the potential of custom AI solutions?

What are the main challenges in developing custom AI solutions

What are the main challenges in developing custom AI solutions

What are the main challenges in developing custom AI solutions

What are the first steps a decision maker should take to start evaluating custom AI solutions

What are the first steps a decision maker should take to start evaluating custom AI solutions

What are the first steps a decision maker should take to start evaluating custom AI solutions

What are the costs involved in developing custom AI solutions?

What are the costs involved in developing custom AI solutions?

What are the costs involved in developing custom AI solutions?

What types of data are needed for AI development?

What types of data are needed for AI development?

What types of data are needed for AI development?

Looking to integrate AI into your product or project?

Get a Free consultation with our AI experts.