Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: text-classification
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- sentiment-analysis
|
| 6 |
+
- 3-class
|
| 7 |
+
- roberta
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# DistilBERT / RoBERTa 3-Class Sentiment Model
|
| 12 |
+
|
| 13 |
+
This model predicts **three sentiment classes** from text:
|
| 14 |
+
- **0 → Neutral**
|
| 15 |
+
- **1 → Negative**
|
| 16 |
+
- **2 → Positive**
|
| 17 |
+
|
| 18 |
+
## 🧠 Model Details
|
| 19 |
+
- Architecture: DistilBERT / RoBERTa (base)
|
| 20 |
+
- Fine-tuned on: university feedback / reviews
|
| 21 |
+
- Framework: 🤗 Transformers
|
| 22 |
+
|
| 23 |
+
## 🧪 Example Usage
|
| 24 |
+
```python
|
| 25 |
+
from transformers import pipeline
|
| 26 |
+
pipe = pipeline("text-classification", model="your-username/roberta-3class")
|
| 27 |
+
pipe("The lecture was very engaging and clear!")
|
| 28 |
+
# → [{'label': 'Positive', 'score': 0.97}]
|