Downloads · 30 days
3
8% of all-time downloads
nada-05/nps-score-xlm-roberta
nps-score-xlm-roberta is a machine learning model from nada-05. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned xlm-roberta-base pour prédire le score NPS sentimental (0–10) depuis les commentaires clients. Projet : Système NPS Dior/Reetain — Nada El Maliki
Downloads · 30 days
3
8% of all-time downloads
All-time downloads
37
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Fine-tuned xlm-roberta-base pour prédire le score NPS sentimental (0–10) depuis les commentaires clients.
Projet : Système NPS Dior/Reetain — Nada El Maliki
| Métrique | Valeur |
|---|---|
| MAE | 0.879 |
| RMSE | 1.208 |
| Acc@1 | 0.757 |
| Seg Accuracy | 0.998 |
| Pearson R | 0.916 |
import torch
from transformers import AutoTokenizer
from modeling_nps_score import NPSScoreModel
model = NPSScoreModel.from_pretrained(
"nada-05/nps-score-xlm-roberta", trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"nada-05/nps-score-xlm-roberta", trust_remote_code=True
)
model.eval()
text = "J'ai attendu 40 minutes sans assistance. Vendeur peu aimable."
enc = tokenizer(text, return_tensors="pt", max_length=256,
truncation=True, padding="max_length")
with torch.no_grad():
out = model(**enc)
score_nps = round(out.logits.item() * 10, 1) # → ex: 2.8
print(f"Score IA : {score_nps}/10")
xlm-roberta-base