CoolFace
Modelpublic

Chaima-KHENAFIF/relevant-comment-detector

sourceHugging Facemitupdated 1mo agoView on Hugging Face
1likes9downloads
Model Card

Relevant / Irrelevant Comment Classifier

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.

Usage

python
from transformers import pipeline

classifier = pipeline("text-classification", model="Chaima-KHENAFIF/relevant-comment-detector")
classifier("la connexion est très lente")

Training

Fine-tuned on ~2,000 labeled comments scraped from telecom operator social media pages, covering French, Darija (Latin and Arabic script), and Arabic.

Training results

EpochTrain LossVal LossVal Accuracy
10.50050.211793.56%
20.21710.157795.05%
30.17430.153094.06%
40.13220.154693.56%

Best validation accuracy of 95.05% reached at epoch 2.

Links