Downloads · 30 days
28
2% of all-time downloads
philschmid/DistilBERT-tweet-eval-emotion
DistilBERT-tweet-eval-emotion is a text classification model from philschmid. Use it when you need a label for a piece of text. It is set up for transformers.
- Problem type: Multi-class Classification
Downloads · 30 days
28
2% of all-time downloads
All-time downloads
1.4K
Public
Repo size
536 MB
Likes
1
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
DistilBERT-tweet-eval-emotion trained using autoNLPYou can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "Worry is a down payment on a problem you may never have'. Joyce Meyer. #motivation #leadership #worry"}' https://api-inference.huggingface.co/models/philschmid/autonlp-tweet_eval_vs_comprehend-3092245
Or Python API:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = 'philschmid/DistilBERT-tweet-eval-emotion'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
classifier("Worry is a down payment on a problem you may never have'. Joyce Meyer. #motivation #leadership #worry")