Dataset
: VN‑HSD (ViSoLex‑HSD unified hate speech corpus)
Fine‑tuning
: HuggingFace Transformers
Hyperparameters
Batch size:
32
Learning rate:
3e-5
Epochs:
100
Max sequence length:
256
Results
Accuracy
:
<INSERT_ACCURACY>
F1 Score
:
<INSERT_F1_SCORE>
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("your-namespace/bartpho-hsd")
model = AutoModelForSequenceClassification.from_pretrained("your-namespace/bartpho-hsd")
text = "Anh ta đang lan truyền những lời lẽ căm ghét."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
pred = model(**inputs).logits.argmax(dim=-1).item()
print(f"Dự đoán: {['CLEAN','OFFENSIVE','HATE'][pred]}")
Runs of visolex bartpho-hsd on huggingface.co
66
Total runs
0
24-hour runs
8
3-day runs
7
7-day runs
27
30-day runs
More Information About bartpho-hsd huggingface.co Model
bartpho-hsd huggingface.co is an AI model on huggingface.co that provides bartpho-hsd's model effect (), which can be used instantly with this visolex bartpho-hsd model. huggingface.co supports a free trial of the bartpho-hsd model, and also provides paid use of the bartpho-hsd. Support call bartpho-hsd model through api, including Node.js, Python, http.
bartpho-hsd huggingface.co is an online trial and call api platform, which integrates bartpho-hsd's modeling effects, including api services, and provides a free online trial of bartpho-hsd, you can try bartpho-hsd online for free by clicking the link below.
visolex bartpho-hsd online free url in huggingface.co:
bartpho-hsd is an open source model from GitHub that offers a free installation service, and any user can find bartpho-hsd on GitHub to install. At the same time, huggingface.co provides the effect of bartpho-hsd install, users can directly use bartpho-hsd installed effect in huggingface.co for debugging and trial. It also supports api for free installation.