DistilBERT Sentiment & Tone Analyzer
A lightweight, fine-tuned DistilBERT model designed for dual-head sequence classification. It simultaneously predicts core sentiment (Positive/Negative) and conversational tone across text inputs such as product reviews, user comments, social posts, and quotes.
π Model Details & Classes
The model utilizes a shared distilbert-base-uncased backbone with two custom classification heads built on top of the pooled [CLS] embeddings:
Sentiment Classification (2 Classes)
0: NEGATIVE1: POSITIVE
Tone Classification (4 Classes)
0: MOTIVATIONAL1: SARCASTIC2: FUNNY3: LOVE QUOTE
β‘ Quickstart & Usage
Since this model uses a custom multi-task architecture, define the architecture class and load the weights using safetensors and huggingface_hub.
Prerequisites
pip install torch transformers safetensors huggingface_hub
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support