Downloads · 30 days
15
4% of all-time downloads
jjprietotorres/labse-persuasion-detection-agnostic
labse-persuasion-detection-agnostic is a text classification model from jjprietotorres. Use it when you need a label for a piece of text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
Model ID: jjprietotorres/labse-persuasion-detection-agnostic Part of: Time to Trust AI initiative
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
425
Public
Parameters
471M
1.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.9 GB · 99%
From the Hugging Face model README
Model ID: jjprietotorres/labse-persuasion-detection-agnostic
Part of: Time to Trust AI initiative
This is a SetFit model that can be used for text classification.
It implements a few-shot learning pipeline designed for persuasion and rhetorical intent detection.
The model has been trained using an efficient few-shot learning technique that involves:
The model identifies five rhetorical or persuasion-related cohorts:
This model detects persuasive or manipulative rhetoric across content types and domains.
It is domain-agnostic, suitable for use in:
The goal is to enhance trust, transparency, and explainability within AI systems.
To use this model for inference, first install the SetFit library:
python -m pip install setfit
You can then run inference as follows:
from setfit import SetFitModel
# Download from the Hub and run inference
model = SetFitModel.from_pretrained("jjprietotorres/labse-persuasion-detection-agnostic")
labels = ["Supply Scarcity", "Authority Endorsement","Misrepresentation","Neutral","Logical Appeal"]
# Run inference
texts = [
"Experts agree this is the only viable solution.",
"Hurry, offer ends tonight!",
"Data clearly supports our argument."
]
probas = model.predict_proba(texts)
pooled_probas = probas.max(axis=0).values.tolist()
idxs = probas.max(axis=0).indices.tolist()
result = zip(labels, pooled_probas, [texts[i] for i in idxs])
report = [{"text": text, "label": label, "score": score} for label, score, text in result if label != "Neutral"]
print(report)
Expected output:
[{'text': 'Hurry, offer ends tonight!', 'label': 'Supply Scarcity', 'score': 0.5646279805087063}, {'text': 'Data clearly supports our argument.', 'label': 'Authority Endorsement', 'score': 0.25684773715338116}, {'text': 'Experts agree this is the only viable solution.', 'label': 'Misrepresentation', 'score': 0.5366529547271727}, {'text': 'Data clearly supports our argument.', 'label': 'Logical Appeal', 'score': 0.23385324245461217}]
| Metric | Score |
|---|---|
| Accuracy | 0.86 |
| F1 Score | 0.84 |
| Precision | 0.83 |
| Recall | 0.85 |
(replace with your actual metrics once validated)
This model is a trust-building component of the Time to Trust AI framework.
By publishing it openly, the goal is to make trust operational — demonstrating transparency in model design, intent, and interpretability.
If you use this model or methodology, please cite both the SetFit paper and this model:
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}
@misc{prietotorres2025labsepersuasion,
title={LaBSE Persuasion Detection (Domain-Agnostic)},
author={J.J. Prieto-Torres},
year={2025},
howpublished={\url{https://huggingface.co/jjprietotorres/labse-persuasion-detection-agnostic}},
}
Apache License 2.0 — you are free to use, modify, and distribute with attribution.
Author: J.J. Prieto
Hugging Face: jjprietotorres