Downloads · 30 days
9
20% of all-time downloads
BaoNhan/bn-newsbert-UITVSFC-S
bn-newsbert-UITVSFC-S is a text classification model from BaoNhan. Use it when you need a label for a piece of text. It is set up for transformers.
This model is BaoNhan/BN-NewsBERT fine-tuned for UITVSFC-S on UIT-VSFC.
Downloads · 30 days
9
20% of all-time downloads
All-time downloads
45
Public
Parameters
560M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 100%
From the Hugging Face model README
This model is BaoNhan/BN-NewsBERT fine-tuned for UITVSFC-S on UIT-VSFC.
Test metrics are reported as mean ± sample standard deviation over seeds [42, 22, 202].
| Metric | Mean ± std |
|---|---|
| Test Macro-F1 | 0.8185 ± 0.0041 |
| Test accuracy | 0.9466 ± 0.0014 |
| Test macro precision | 0.8579 ± 0.0106 |
| Test macro recall | 0.7941 ± 0.0059 |
| Development Macro-F1 | 0.8481 ± 0.0017 |
| seed | dev_macro_f1 | test_macro_f1 | test_accuracy | micro_batch_size | gradient_accumulation_steps |
|---|---|---|---|---|---|
| 22.000000 | 0.848161 | 0.822700 | 0.947466 | 8.000000 | 1.000000 |
| 42.000000 | 0.849748 | 0.818250 | 0.944994 | 8.000000 | 1.000000 |
| 202.000000 | 0.846266 | 0.814512 | 0.947466 | 8.000000 | 1.000000 |
{
"0": "negative",
"1": "neutral",
"2": "positive"
}
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "BaoNhan/bn-newsbert-UITVSFC-S"
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=False)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
# This checkpoint follows PhoBERT-style preprocessing; segment raw Vietnamese with VnCoreNLP first.
text = "Đây là văn_bản tiếng_Việt đã được chuẩn_hóa ."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
with torch.no_grad():
probabilities = model(**inputs).logits.softmax(dim=-1)[0]
predicted_id = int(probabilities.argmax())
print(model.config.id2label[predicted_id], probabilities.tolist())
aggregate_metrics.json: aggregate metrics and training manifest.artifacts/per_seed_results.csv: one row per fine-tuning seed.artifacts/seed_*_confusion_matrix.csv: confusion matrix for each seed.artifacts/seed_*_classification_report.json: per-class metrics.artifacts/seed_*_test_predictions.csv: IDs, gold/predicted labels and probabilities; raw text is excluded.UIT-VSFC contains student feedback from a specific educational context. Performance may not transfer to other institutions, domains, informal writing styles, or newly emerging vocabulary. Predictions should not be treated as explanations of student intent.
@InProceedings{8573337,
author={Nguyen, Kiet Van and Nguyen, Vu Duc and Nguyen, Phu X. V. and Truong, Tham T. H. and Nguyen, Ngan Luu-Thuy},
booktitle={2018 10th International Conference on Knowledge and Systems Engineering (KSE)},
title={UIT-VSFC: Vietnamese Students' Feedback Corpus for Sentiment Analysis},
year={2018},
pages={19--24},
doi={10.1109/KSE.2018.8573337}
}