Views
No views yet
classla/bcms-bertic and fine-tuned on the BCS Political Sentiment dataset (sentence-level data).simpletransformers. Beforehand a brief sweep for the optimal number of epochs was performed and the presumed best value was 9. Other arguments were kept default.1
2model_args = {
3 "num_train_epochs": 9
4 }fasttext for comparison. Macro F1 scores were recorded for each of the 6 fine-tuning sessions and post festum analyzed.| model | average macro F1 |
|---|---|
| bcms-bertic-parlasent-bcs-ter | 0.7941 ± 0.0101 ** |
| EMBEDDIA/crosloengual-bert | 0.7709 ± 0.0113 |
| xlm-roberta-base | 0.7184 ± 0.0139 |
| fasttext + CLARIN.si embeddings | 0.6312 ± 0.0043 |
simpletransformers==0.63.71from simpletransformers.classification import ClassificationModel
2
3model = ClassificationModel("electra", "classla/bcms-bertic-parlasent-bcs-ter")
4
5predictions, logits = model.predict([
6 "Vi niste normalni",
7 "Đački autobusi moraju da voze svaki dan",
8 "Ovo je najbolji zakon na svetu",
9 ]
10 )
11
12predictions
13# Output: array([0, 1, 2])
14
15[model.config.id2label[i] for i in predictions]
16# Output: ['Negative', 'Neutral', 'Positive']@inproceedings{ljubesic-lauc-2021-bertic,
title = "{BERT}i{\'c} - The Transformer Language Model for {B}osnian, {C}roatian, {M}ontenegrin and {S}erbian",
author = "Ljube{\v{s}}i{\'c}, Nikola and Lauc, Davor",
booktitle = "Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing",
month = apr,
year = "2021",
address = "Kiyv, Ukraine",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2021.bsnlp-1.5",
pages = "37--42",
}@misc{https://doi.org/10.48550/arxiv.2206.00929,
doi = {10.48550/ARXIV.2206.00929},
url = {https://arxiv.org/abs/2206.00929},
author = {Mochtak, Michal and Rupnik, Peter and Ljubešič, Nikola},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {The ParlaSent-BCS dataset of sentiment-annotated parliamentary debates from Bosnia-Herzegovina, Croatia, and Serbia},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution Share Alike 4.0 International}
}