Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,37 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
widget:
|
| 3 |
-
- text: "I
|
| 4 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-classification
|
| 4 |
+
- emotion
|
| 5 |
+
- multi-label
|
| 6 |
+
- transformers
|
| 7 |
+
- deberta-v3
|
| 8 |
+
- huggingface
|
| 9 |
widget:
|
| 10 |
+
- text: "I feel excited but kind of anxious too."
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# DeBERTa V3 - Multi-label Emotion Classifier
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of `microsoft/deberta-v3-base` for **multi-label emotion classification**.
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
- Base model: `DeBERTa V3`
|
| 20 |
+
- Task: Multi-label emotion detection
|
| 21 |
+
- Architecture: `DebertaV2ForSequenceClassification`
|
| 22 |
+
- Number of labels: 14
|
| 23 |
+
- Format: `safetensors`
|
| 24 |
+
|
| 25 |
+
## Usage
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 29 |
+
import torch
|
| 30 |
+
|
| 31 |
+
tokenizer = AutoTokenizer.from_pretrained("PuroFuro/deberta-v3-emotion-multilabel")
|
| 32 |
+
model = AutoModelForSequenceClassification.from_pretrained("PuroFuro/deberta-v3-emotion-multilabel")
|
| 33 |
+
|
| 34 |
+
inputs = tokenizer("I feel nervous but hopeful.", return_tensors="pt")
|
| 35 |
+
outputs = model(**inputs)
|
| 36 |
+
probs = torch.sigmoid(outputs.logits)
|
| 37 |
+
print(probs)
|