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
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Introduction:
This model belongs to text-classification. You can determine the emotion behind a sentence.
Label Explaination:
LABEL_0: Positive (have positive emotion)
LABEL_1: Negative (have negative emotion)
Usage:
>>> from transformers import pipeline
>>> ec = pipeline('text-classification', model='Osiris/emotion_classifier')
>>> ec("Hello, I'm a good model.")
Accuracy:
We reach 83.82% for validation dataset, and 84.42% for test dataset.
- Downloads last month
- 7