Vietnamese Spam Reviews Detection
Collection
7 items
•
Updated
This model is a fine-tuned version of uitnlp/visobert on the ViSpamReviews dataset for spam review detection in Vietnamese e-commerce reviews.
uitnlp/visobert2565e-5321005The model was trained on the ViSpamReviews dataset, which contains 19,860 Vietnamese e-commerce review samples. The dataset includes:
The model was evaluated on the test set with the following metrics:
0.91440.8916You can use this model for spam review detection in Vietnamese text. Below is an example:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "visolex/visobert-spam-binary"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example review text
text = "Sản phẩm này rất tốt, shop giao hàng nhanh!"
# Tokenize
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
# Predict
with torch.no_grad():
outputs = model(**inputs)
predicted_class = outputs.logits.argmax(dim=-1).item()
probabilities = torch.softmax(outputs.logits, dim=-1)
# Map to label
label_map = {0: "Non-spam", 1: "Spam"}
predicted_label = label_map[predicted_class]
confidence = probabilities[0][predicted_class].item()
print(f"Text: {text}")
print(f"Predicted: {predicted_label} (confidence: {confidence:.2%})")
If you use this model, please cite:
@misc{{
{model_key}_spam_detection,
title={{{description}}},
author={{ViSoLex Team}},
year={{2025}},
howpublished={{\url{{https://huggingface.co/{visolex/visobert-spam-binary}}}}}
}}
This model is released under the Apache-2.0 license.
Base model
uitnlp/visobert