Downloads · 30 days
11
28% of all-time downloads
nada-05/nps-score-camembert
nps-score-camembert 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 camembert-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
11
28% of all-time downloads
All-time downloads
39
Public
Parameters
111M
444 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors443 MB · 99%
From the Hugging Face model README
Fine-tuned camembert-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 | 1.041 |
| RMSE | 1.322 |
| Acc@1 | 0.584 |
| Seg Accuracy | 0.978 |
| Pearson R | 0.900 |
import torch
from transformers import AutoTokenizer
from modeling_nps_score import NPSScoreModel
model = NPSScoreModel.from_pretrained(
"nada-05/nps-score-camembert", trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"nada-05/nps-score-camembert", 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")
camembert-base