Vietnamese Spam Reviews Detection
Collection
7 items
•
Updated
Fine-tuned from uitnlp/visobert
on ViSpamReviews for binary spam detection.
Task: Binary classification (Label
: 0 = non-spam, 1 = spam)
Dataset: ViSpamReviews
Hyperparameters
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")
Base model
uitnlp/visobert