Downloads · 30 days
9
5% of all-time downloads
jatinmehra/NegaBot-Product-Criticism-Catcher
NegaBot-Product-Criticism-Catcher is a text classification model from jatinmehra. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
<p align="center" <img width="512" src="https://github.com/user-attachments/assets/18669a85-e7fc-47f6-9183-e7ee33648930" alt="NegaBot Model Illustration" </p
Downloads · 30 days
9
5% of all-time downloads
All-time downloads
181
Public
Parameters
362M
2.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
NegaBot is a fine-tuned SmolLM-360M model that detects negative product reviews on the X platform (formerly Twitter). It is designed to help brands and analysts identify dissatisfaction or criticism in real-time.
Binary Sentiment Classification:
1 (Negative) or 0 (Positive)| Dataset | Accuracy | F1-score |
|---|---|---|
| Validation | 0.90 | 0.89 |
| Test | 0.91 | 0.91 |
🔍 Sarcasm Handling:
🧪 Improved Generalization:
📦 New Notebook:
SmolLM360M-V2.ipynb contains the additional training pipeline for sarcasm-aware performance✅ New Accuracy:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained("jatinmehra/NegaBot-Product-Criticism-Catcher")
tokenizer = AutoTokenizer.from_pretrained("jatinmehra/NegaBot-Product-Criticism-Catcher")
text = "This product is awful and broke within a week!"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
predicted_class = torch.argmax(outputs.logits, dim=1).item()
print("Negative" if predicted_class == 1 else "Positive")
0 → Positive (The tweet expresses satisfaction or approval of the product)1 → Negative (The tweet expresses dissatisfaction or criticism)