ViSoBERT-Spam-Binary

Fine-tuned from uitnlp/visobert on ViSpamReviews for binary spam detection.

  • Task: Binary classification (Label: 0 = non-spam, 1 = spam)

  • Dataset: ViSpamReviews

  • Hyperparameters

    • Batch size: 32
    • LR: 3e-5
    • Epochs: 100
    • Max seq len: 256

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("visolex/visobert-spam-binary")
model = AutoModelForSequenceClassification.from_pretrained("visolex/visobert-spam-binary")

text = "Đây là đánh giá tuyệt vời!"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
pred = model(**inputs).logits.argmax(dim=-1).item()
print("Spam" if pred==1 else "Non-spam")
Downloads last month
6
Safetensors
Model size
97.6M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for visolex/visobert-spam-binary

Base model

uitnlp/visobert
Finetuned
(44)
this model

Dataset used to train visolex/visobert-spam-binary

Collection including visolex/visobert-spam-binary

Evaluation results