visolex / bilstm-hsd

huggingface.co
Total runs: 11
24-hour runs: 0
7-day runs: 2
30-day runs: -1
Model's Last Updated: January 05 2026
text-classification

Introduction of bilstm-hsd

Model Details of bilstm-hsd

BILSTM

bilstm fine-tuned cho bài toán phân loại Hate Speech.

Model Details
  • Model type : Fine-tuned transformer model
  • Architecture : Unknown
  • Base model : Unknown
  • Task : Hate Speech Classification
  • Language : Vietnamese
  • Labels : CLEAN (0), OFFENSIVE (1), HATE (2)
📊 Model Performance
Metric Score
Accuracy 0.8388
F1 Macro 0.3041
F1 Weighted 0.7652
Model Description

bilstm fine-tuned cho bài toán phân loại Hate Speech. Model này được fine-tune từ Unknown trên dataset ViHSD (Vietnamese Hate Speech Dataset).

How to Use
Basic Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

# Load model and tokenizer
model_name = "visolex/hate-speech-bilstm"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

# Classify text
text = "Văn bản tiếng Việt cần phân loại"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)

with torch.no_grad():
    outputs = model(**inputs)
    predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
    predicted_label = torch.argmax(predictions, dim=-1).item()

# Label mapping
label_names = {
    0: "CLEAN",
    1: "OFFENSIVE",
    2: "HATE"
}

print(f"Predicted label: {label_names[predicted_label]}")
print(f"Confidence scores: {predictions[0].tolist()}")
Using the Pipeline
from transformers import pipeline

classifier = pipeline(
    "text-classification",
    model="visolex/hate-speech-bilstm",
    tokenizer="visolex/hate-speech-bilstm"
)

result = classifier("Văn bản tiếng Việt cần phân loại")
print(result)
Training Details
Training Data
  • Dataset: ViHSD (Vietnamese Hate Speech Dataset)
  • Training samples: ~8,000 samples
  • Validation samples: ~1,000 samples
  • Test samples: ~1,000 samples
Training Procedure
  • Framework: PyTorch + Transformers
  • Optimizer: AdamW
  • Learning Rate: 2e-5
  • Batch Size: 32
  • Epochs: Varies by model
  • Max Sequence Length: 256
Label Distribution
  • CLEAN (0): Normal content without offensive language
  • OFFENSIVE (1): Mildly offensive content
  • HATE (2): Hate speech and extremist language
Evaluation

Model được đánh giá trên test set của ViHSD với các metrics:

  • Accuracy: Overall classification accuracy
  • F1 Macro: Macro-averaged F1 score across all labels
  • F1 Weighted: Weighted F1 score based on label frequency
Limitations and Bias
  • Model chỉ được train trên dữ liệu tiếng Việt từ mạng xã hội
  • Performance có thể giảm trên domain khác (email, document, etc.)
  • Model có thể có bias từ dữ liệu training
  • Cần đánh giá thêm trên dữ liệu real-world
Citation
Contact
License

This model is distributed under the MIT License.

Runs of visolex bilstm-hsd on huggingface.co

11
Total runs
0
24-hour runs
1
3-day runs
2
7-day runs
-1
30-day runs

More Information About bilstm-hsd huggingface.co Model

More bilstm-hsd license Visit here:

https://choosealicense.com/licenses/mit

bilstm-hsd huggingface.co

bilstm-hsd huggingface.co is an AI model on huggingface.co that provides bilstm-hsd's model effect (), which can be used instantly with this visolex bilstm-hsd model. huggingface.co supports a free trial of the bilstm-hsd model, and also provides paid use of the bilstm-hsd. Support call bilstm-hsd model through api, including Node.js, Python, http.

bilstm-hsd huggingface.co Url

https://huggingface.co/visolex/bilstm-hsd

visolex bilstm-hsd online free

bilstm-hsd huggingface.co is an online trial and call api platform, which integrates bilstm-hsd's modeling effects, including api services, and provides a free online trial of bilstm-hsd, you can try bilstm-hsd online for free by clicking the link below.

visolex bilstm-hsd online free url in huggingface.co:

https://huggingface.co/visolex/bilstm-hsd

bilstm-hsd install

bilstm-hsd is an open source model from GitHub that offers a free installation service, and any user can find bilstm-hsd on GitHub to install. At the same time, huggingface.co provides the effect of bilstm-hsd install, users can directly use bilstm-hsd installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bilstm-hsd install url in huggingface.co:

https://huggingface.co/visolex/bilstm-hsd

Url of bilstm-hsd

bilstm-hsd huggingface.co Url

Provider of bilstm-hsd huggingface.co

visolex
ORGANIZATIONS

Other API from visolex

huggingface.co

Total runs: 57
Run Growth: 18
Growth Rate: 32.14%
Updated:January 05 2026
huggingface.co

Total runs: 49
Run Growth: 13
Growth Rate: 26.53%
Updated:January 05 2026
huggingface.co

Total runs: 33
Run Growth: 21
Growth Rate: 65.63%
Updated:January 05 2026
huggingface.co

Total runs: 21
Run Growth: -13
Growth Rate: -72.22%
Updated:January 05 2026
huggingface.co

Total runs: 20
Run Growth: 5
Growth Rate: 26.32%
Updated:June 20 2025
huggingface.co

Total runs: 14
Run Growth: -3
Growth Rate: -25.00%
Updated:January 05 2026
huggingface.co

Total runs: 4
Run Growth: -2
Growth Rate: -66.67%
Updated:January 05 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 17 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 29 2025