Downloads · 30 days
0
0% of all-time downloads
vsem-azamat/rubert-tiny-spam-classifier
rubert-tiny-spam-classifier is a machine learning model from vsem-azamat. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/) [](https://huggingface.co/cointegrated/rubert-tiny)
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
3
Public
Repo size
47.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors47.1 MB · 98%
From the Hugging Face model README
A lightweight Russian language spam classifier based on RuBERT Tiny model. The model can detect spam in text messages with high accuracy while maintaining minimal resource requirements.
pip install --upgrade pip
pip install -r requirements.txt
.
├── cleaned_dataset.csv # Cleaned dataset
├── messages.csv # Source dataset
├── model/ # Trained model
├── scripts/
│ ├── inference.py # Inference script
│ ├── preprocess.ipynb # Data preprocessing notebook
│ └── train.py # Training script
└── requirements.txt # Project dependencies
Datasets will not be published at this time.
python3 scripts/train.py
# python3 scripts/inference.py
from scripts.inference import SpamClassifier
classifier = SpamClassifier(model_path="./model")
text = "Привет, у меня есть подработка, оплата 100 сек руб.
is_spam = classifier.classify(text)
print(f"Is spam: {is_spam}")
The classifier is based on RuBERT Tiny - a lightweight version of RuBERT, optimized for running on low-resource machines. The model is fine-tuned on a dataset of Russian messages for spam classification.