Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use howyoung1248/distilbert-emotion-project2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use howyoung1248/distilbert-emotion-project2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="howyoung1248/distilbert-emotion-project2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("howyoung1248/distilbert-emotion-project2") model = AutoModelForSequenceClassification.from_pretrained("howyoung1248/distilbert-emotion-project2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download adversarial_samples.csv from howyoung1248/distilbert-emotion-project2: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/howyoung1248/distilbert-emotion-project2/resolve/main/adversarial_samples.csv
- Command line
-
hf download hf://howyoung1248/distilbert-emotion-project2/adversarial_samples.csv
-
curl -L -o adversarial_samples.csv https://huggingface.co/howyoung1248/distilbert-emotion-project2/resolve/main/adversarial_samples.csv
763 Bytes
| text,predicted_label,score,second_label,second_score | |
| So grateful for another last-minute change. I definitely did not want peace today.,LABEL_1,0.9284552335739136,LABEL_2,0.06179341673851013 | |
| I am fine. Totally fine. Just calmly imagining throwing my laptop into the sun.,LABEL_1,0.9980949759483337,LABEL_3,0.0005972525686956942 | |
| Haha what if everything goes wrong and I have no backup plan. Anyway good morning.,LABEL_1,0.9980632662773132,LABEL_0,0.0006628980045206845 | |
| Love how my whole day fell apart before breakfast. Amazing. 10/10 experience.,LABEL_5,0.9819968342781067,LABEL_1,0.00869794748723507 | |
| Congrats to everyone thriving while I’m over here getting character development against my will.,LABEL_1,0.9971104860305786,LABEL_2,0.0016377299325540662 | |