Efficient Few-Shot Learning Without Prompts
Paper • 2209.11055 • Published • 5
This is a SetFit model trained for binary classification of adult/safe content in articles.
adult, safelabel adult 663 safe 599
2025-11-19 17:14:54
from setfit import SetFitModel
# Load the model
model = SetFitModel.from_pretrained("setfit-multilingual-e5-nsfw-classifier")
# Run inference
texts = [
"domain:example.com\ntitle:Weather forecast\ndescription:Sunny skies expected",
"domain:news.com\ntitle:Breaking news\ndescription:Important developments",
]
predictions = model.predict(texts)
print(predictions)
The model expects input text in the following format:
domain:<domain_name>
title:<article_title>
description:<article_description>
The model outputs one of two labels:
adult: Content is flagged as adult/NSFWsafe: Content is safe for workThis model is trained on a specific dataset and may not generalize well to:
If you use this model, please cite SetFit:
@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}
}