Text Classification
Transformers
Safetensors
PyTorch
English
distilbert
emotion-classification
twitter
Eval Results (legacy)
text-embeddings-inference
Instructions to use znmor9365/Twitter_DistilBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use znmor9365/Twitter_DistilBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="znmor9365/Twitter_DistilBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("znmor9365/Twitter_DistilBERT") model = AutoModelForSequenceClassification.from_pretrained("znmor9365/Twitter_DistilBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,016 Bytes
ebe012d 508121d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ---
language:
- en
base_model:
- distilbert/distilbert-base-uncased
datasets:
- dair-ai/emotion
metrics:
- accuracy
- f1
library_name: transformers
pipeline_tag: text-classification
tags:
- distilbert
- emotion-classification
- twitter
- text-classification
- pytorch
widget:
- text: "I feel so happy and excited today!"
- text: "I am terrified that something bad will happen."
- text: "I really miss the people I love."
model-index:
- name: DistilBERT Twitter Emotion Classifier
results:
- task:
type: text-classification
name: Emotion Classification
dataset:
type: dair-ai/emotion
name: Emotion
split: test
metrics:
- type: accuracy
value: 0.929
name: Test Accuracy
- type: f1
value: 0.929073
name: Test Weighted F1
---
# DistilBERT Twitter Emotion Classifier
This model is a fine-tuned version of
[`distilbert-base-uncased`](https://huggingface.co/distilbert/distilbert-base-uncased)
for six-class English Twitter emotion classification. |