Downloads · 30 days
7
23% of all-time downloads
Chaima-KHENAFIF/relevant-comment-detector
relevant-comment-detector is a text classification model from Chaima-KHENAFIF. Use it when you need a label for a piece of text. The card lists the license as mit.
A fine-tuned xlm-roberta-base model that classifies social media comments as relevant or irrelevant to the topic they were posted under.
Downloads · 30 days
7
23% of all-time downloads
All-time downloads
31
Public
Repo size
1.1 GB
Likes
1
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
A fine-tuned xlm-roberta-base model that classifies social media comments as relevant or irrelevant to the topic they were posted under.
Trained on real-world telecom customer comments (French, Darija, and Arabic), where "irrelevant" covers off-topic chatter, spam, or unrelated remarks mixed in with genuine customer feedback.
from transformers import pipeline
classifier = pipeline("text-classification", model="Chaima-KHENAFIF/relevant-comment-detector")
classifier("la connexion est très lente")
Fine-tuned on ~2,000 labeled comments scraped from telecom operator social media pages, covering French, Darija (Latin and Arabic script), and Arabic.
| Epoch | Train Loss | Val Loss | Val Accuracy |
|---|---|---|---|
| 1 | 0.5005 | 0.2117 | 93.56% |
| 2 | 0.2171 | 0.1577 | 95.05% |
| 3 | 0.1743 | 0.1530 | 94.06% |
| 4 | 0.1322 | 0.1546 | 93.56% |
Best validation accuracy of 95.05% reached at epoch 2.