Downloads · 30 days
0
AhsanFarabi/customer-emotion-classifier
customer-emotion-classifier is a text classification model from AhsanFarabi. Use it when you need a label for a piece of text. The card lists the license as mit.
This repository hosts a high-performance TF-IDF + Logistic Regression text classification model trained on the dair-ai/emotion dataset.
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2026
Repo size
431 KB
Likes
0
Public
Click a slice to open those files.
.joblib431 KB · 99%
From the Hugging Face model README
This repository hosts a high-performance TF-IDF + Logistic Regression text classification model trained on the dair-ai/emotion dataset.
import joblib
# Download and load model directly
pipeline = joblib.load("model_pipeline.joblib")
labels = joblib.load("labels.joblib")
text = "I am so happy with this service!"
pred_idx = pipeline.predict([text])[0]
print("Predicted Emotion:", labels[pred_idx])