Views
No views yet
vinai/phobert-base fine-tuned for UIT-VSMEC emotion recognition on UIT-VSMEC.best_model from seed 202, selected by development Macro-F1.| Metric | Mean ± std |
|---|---|
| Test Macro-F1 | 0.4889 ± 0.0231 |
| Test accuracy | 0.6061 ± 0.0113 |
| Test macro precision | 0.5643 ± 0.0815 |
| Test macro recall | 0.4871 ± 0.0228 |
| Development Macro-F1 | 0.4541 ± 0.0218 |
| seed | dev_macro_f1 | test_macro_f1 | test_accuracy |
|---|---|---|---|
| 22.000000 | 0.458312 | 0.495063 | 0.611833 |
| 42.000000 | 0.430529 | 0.463310 | 0.593074 |
| 202.000000 | 0.473531 | 0.508274 | 0.613276 |
1{
2 "0": "Anger",
3 "1": "Disgust",
4 "2": "Enjoyment",
5 "3": "Fear",
6 "4": "Other",
7 "5": "Sadness",
8 "6": "Surprise"
9}1import torch
2from transformers import AutoModelForSequenceClassification, AutoTokenizer
3
4model_id = "BaoNhan/phobert-base-UITVSMEC"
5tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=False)
6model = AutoModelForSequenceClassification.from_pretrained(model_id)
7
8# Segment raw Vietnamese with VnCoreNLP before inference for this checkpoint.
9text = "Đây là văn_bản tiếng_Việt đã được chuẩn_hóa ."
10inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
11with torch.no_grad():
12 probabilities = model(**inputs).logits.softmax(dim=-1)[0]
13
14predicted_id = int(probabilities.argmax())
15print(model.config.id2label[predicted_id], probabilities.tolist())aggregate_metrics.json: aggregate metrics and publishing metadata.artifacts/per_seed_results.csv: available completed-seed results.1@inproceedings{ho-etal-2019-emotion,
2 title={Emotion Recognition for Vietnamese Social Media Text},
3 author={Ho, Vong Anh and Nguyen, Duong Huynh-Cong and Nguyen, Danh Hoang and Pham, Linh Thi-Van and Nguyen, Duc-Vu and Nguyen, Kiet Van and Nguyen, Ngan Luu-Thuy},
4 booktitle={Proceedings of the 16th International Conference of the Pacific Association for Computational Linguistics (PACLING 2019)},
5 year={2019},
6 pages={319--333},
7 url={https://arxiv.org/abs/1911.09339}
8}