GoEmotions ยท 27 Emotions ยท BERT Fine-tuned ยท FastAPI

Understand how textactually feels.

A fine-tuned transformer that classifies text across 27 emotion categories with confidence scoring โ€” built on Google's GoEmotions dataset.

27 Emotion ClassesGoEmotions DatasetBERT / DistilBERTMulti-labelFastAPI Backend
0
Emotion Classes
0k
Training Samples
0
Max Tokens
0M
Parameters

Emotion Classes

All 27 Emotions, Detected

From joy to remorse โ€” the model identifies the full spectrum of human emotion.

๐ŸŒŸ joyโค๏ธ love๐Ÿ™Œ admiration๐Ÿ˜„ amusementโšก excitement๐Ÿ™ gratitude๐ŸŒ… optimism๐Ÿ† pride๐Ÿ˜ฎโ€๐Ÿ’จ relief๐Ÿ’š caringโœ… approval๐Ÿ’ก realization๐Ÿ” curiosity๐Ÿ˜ฒ surprise๐Ÿค” confusion๐Ÿ’ซ desire๐Ÿ”ฅ anger๐Ÿ˜ค annoyance๐Ÿ‘Ž disapproval๐Ÿคข disgust๐Ÿ˜จ fear๐Ÿ˜ข sadness๐Ÿ’” grief๐Ÿ˜ฐ nervousness๐Ÿ˜ณ embarrassment๐Ÿ˜ž remorse๐Ÿ˜” disappointment

How it works

Five steps from raw text to emotion prediction.

1

Input Text

Type or paste any text

2

Tokenization

AutoTokenizer splits text into subwords

3

BERT Forward Pass

12 transformer layers process contextual embeddings

4

Sigmoid Output

27 independent probabilities, one per emotion class

5

Top Prediction

Highest-confidence emotion + score returned

โ–‹

Features

Built for accuracy.

Everything that makes this model production-ready.

โšก

Real-time Inference

Sub-100ms predictions via async FastAPI + Uvicorn

๐Ÿท๏ธ

27 Emotion Classes

Full GoEmotions taxonomy โ€” from joy to embarrassment

๐Ÿ”€

Multi-label Output

Text can carry multiple emotions simultaneously

๐Ÿ“Š

Confidence Scoring

Per-class sigmoid probabilities, not just top-1

๐Ÿง 

BERT Backbone

DistilBERT fine-tuned on 58k annotated Reddit comments

๐ŸŒ

REST API

JSON in, JSON out โ€” integrate with any stack

Tech Stack

Everything under the hood.

Model / ML

๐Ÿ”ฅ

PyTorch

Model training & inference

๐Ÿค—

HuggingFace Transformers

AutoModel, AutoTokenizer

๐Ÿ“Š

GoEmotions Dataset

58k Reddit comments, 27 labels

๐Ÿง 

BERT / DistilBERT

Pretrained transformer backbone

๐Ÿ“ˆ

Sigmoid Multi-label

Independent probability per class

Backend / Infra

โšก

FastAPI

Async Python API server

๐Ÿฆ„

Uvicorn

ASGI production server

โ˜๏ธ

HuggingFace Hub

Model weights hosting

๐Ÿ

Python 3.11

Runtime environment

๐Ÿณ

Docker

Containerised deployment

See it in action.

Paste any text and watch the model detect emotions in real time.

Live model ยท GoEmotions trained ยท No signup