Test metrics are reported as mean ± sample standard deviation over seeds [42, 22, 202].
1{
2 "0": "TECHNOLOGY",
3 "1": "TRAVEL",
4 "2": "EDUCATION",
5 "3": "ENTERTAINMENT",
6 "4": "SCIENCE",
7 "5": "BUSINESS",
8 "6": "LAW",
9 "7": "HEALTH",
10 "8": "WORLD",
11 "9": "SPORT",
12 "10": "NEWS",
13 "11": "VEHICLE",
14 "12": "LIFE"
15}
1import torch
2from transformers import AutoModelForSequenceClassification, AutoTokenizer
3
4model_id = "BaoNhan/mbert-UIT-ViON"
5tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=False)
6model = AutoModelForSequenceClassification.from_pretrained(model_id)
7
8text = "Đây là nội dung tiếng Việt cần phân loại."
9inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=64)
10with torch.no_grad():
11 probabilities = model(**inputs).logits.softmax(dim=-1)[0]
12predicted_id = int(probabilities.argmax())
13print(model.config.id2label[predicted_id], probabilities.tolist())
UIT-ViON contains semi-automatically annotated, word-segmented news titles collected from six Vietnamese online newspapers in a particular period. Topic balance is artificial and does not represent real-world topic prevalence. Performance may not transfer to full articles, new outlets, newer events, or changed editorial taxonomies. Source URLs are retained only for audit and are never model inputs.
1@inproceedings{tran2021uitvion,
2 author={Tran, Khanh Quoc and Trinh, Phap Ngoc and Tran, Khoa Nguyen-Anh and Le, An Tran-Hoai and Ha, Luan Van and Nguyen, Kiet Van},
3 title={An Empirical Investigation of Online News Classification on an Open-domain, Large-scale and High-quality Dataset in Vietnamese},
4 booktitle={New Trends in Intelligent Software Methodologies, Tools and Techniques},
5 year={2021},
6 pages={367--379},
7 publisher={IOS Press},
8 doi={10.3233/FAIA210036}
9}