Views
No views yet
vinai/phobert-base for binary Vietnamese clickbait detection.StratifiedGroupKFold with seed 42.True.| Metric | Mean ± sample std |
|---|---|
| Test Macro-F1 | 0.7748 ± 0.0074 |
| Test accuracy | 0.7973 ± 0.0074 |
| Dev Macro-F1 | 0.7760 ± 0.0105 |
| seed | dev_macro_f1 | test_macro_f1 | test_accuracy |
|---|---|---|---|
| 22 | 0.7881 | 0.7819 | 0.8041 |
| 42 | 0.7686 | 0.7671 | 0.7895 |
| 202 | 0.7714 | 0.7754 | 0.7982 |
0: non-clickbait1: clickbait1from transformers import AutoModelForSequenceClassification, AutoTokenizer
2
3model_id = "BaoNhan/phobert-base-ViClickbait-2025"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForSequenceClassification.from_pretrained(model_id)
6title = "Tiêu đề bài báo"
7lead = "Đoạn dẫn của bài báo"
8inputs = tokenizer(title, lead, return_tensors="pt", truncation=True, max_length=256)
9prediction = model(**inputs).logits.argmax(dim=-1).item()
10print(model.config.id2label[prediction])