Downloads · 30 days
930
16% of all-time downloads
corall88/russian_spam_detector
russian_spam_detector is a text classification model from corall88. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-nc-nd-4.0.
Модель russianspamdetector предназначена для бинарной классификации текстов на 2 категории: - LABEL1 — спам-сообщение - LABEL0 — нормальное сообщение (не спам)
Downloads · 30 days
930
16% of all-time downloads
All-time downloads
5.9K
Public
Parameters
150M
598 MB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors598 MB · 99%
From the Hugging Face model README
Модель russian_spam_detector предназначена для бинарной классификации текстов на 2 категории:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_name = "corall88/russian_spam_detector"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
detector = pipeline("text-classification", model=model, tokenizer=tokenizer)
message = "Поздравляем! Вы выиграли 1000000 рублей, пройдите по ссылке - ..."
predict = detector(message)
print(predict)
В качетсвете данных для файнтюнинга модели был выбран датасет cо спам сообщениями.
Модель основана на RuModernBERT-base и дообучена на задаче бинарной классификации.
| Metric | Value |
|---|---|
| Accuracy | 0.99 |
| F1-score | 0.99 |
| Precision | 0.99 |
| Recall | 0.99 |
@misc{russian_spam_detector,
title={russian_spam_detector: modern model for spam detection},
author={corall88},
url={https://huggingface.co/corall88/russian_spam_detector},
publisher={Hugging Face}
year={2025},
}