CoolFace
Modelpublic

AbhishekBhavnani/TweetClassification

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes8downloads
Model Card

BERT-based Emotion Classification Model ๐ŸŽญ

This model is a fine-tuned version of BERT for emotion classification. It predicts one of six emotion categories from a given English text input.

๐Ÿง  Model Details

  • โ€”Architecture: BertForSequenceClassification
  • โ€”Base Model: bert-base-uncased
  • โ€”Labels:
  • โ€”0: sadness
  • โ€”1: joy
  • โ€”2: love
  • โ€”3: anger
  • โ€”4: fear
  • โ€”5: surprise
  • โ€”Problem Type: Single-label classification
  • โ€”Hidden Size: 768
  • โ€”Max Sequence Length: 512
  • โ€”Number of Layers: 12

๐Ÿš€ How to Use

python
from transformers import pipeline

classifier = pipeline("text-classification", model="AbhishekBhavnani/TweetClassification")
result = classifier("I'm feeling so happy today!")
print(result)

Example

Input:

text
I can't stop smiling, this movie is too funny!

Output:

text
[{'label': 'joy', 'score': 0.9821}]