Downloads · 30 days
7
3% of all-time downloads
Fayad11/fine_tuned_emotion_inference_model
fine_tuned_emotion_inference_model is a text classification model from Fayad11. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This is a fine-tuned text classification model for Emotion Detection. It predicts the underlying emotion of a given text sequence. The model is an asset evaluated alongside the broader NLP processing pipelines built b…
Downloads · 30 days
7
3% of all-time downloads
All-time downloads
241
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This is a fine-tuned text classification model for Emotion Detection. It predicts the underlying emotion of a given text sequence. The model is an asset evaluated alongside the broader NLP processing pipelines built by Fayad11.
Fayad11/fine_tuned_emotion_inference_modelYou can use this model in your application via the Hugging Face transformers library, or locally alongside its associated EmotionPredictor wrapper (as demonstrated in the project notebooks).
transformers pipelinefrom transformers import pipeline
# Load the model directly from the Hugging Face hub
emotion_classifier = pipeline("text-classification", model="Fayad11/fine_tuned_emotion_inference_model")
text = "I'm sad because I lost my keys."
result = emotion_classifier(text)
print(result)
# Output: [{'label': 'sadness', 'score': 0.98...}]