Instructions to use Osiris/emotion_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Osiris/emotion_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Osiris/emotion_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Osiris/emotion_classifier") model = AutoModelForSequenceClassification.from_pretrained("Osiris/emotion_classifier") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
### Introduction:
|
| 2 |
This model belongs to text-classification. You can determine the emotion behind a sentence.
|
| 3 |
### Label Explaination:
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
### Usage:
|
| 8 |
```python
|
| 9 |
>>> from transformers import pipeline
|
|
|
|
| 1 |
### Introduction:
|
| 2 |
This model belongs to text-classification. You can determine the emotion behind a sentence.
|
| 3 |
### Label Explaination:
|
| 4 |
+
LABEL_0: Positive (have positive emotion)
|
| 5 |
|
| 6 |
+
LABEL_1: Negative (have negative emotion)
|
| 7 |
### Usage:
|
| 8 |
```python
|
| 9 |
>>> from transformers import pipeline
|