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

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

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.

Links

Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Chaima-KHENAFIF/relevant-comment-detector

Finetuned
(4181)
this model