Add the first model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: "hr"
|
| 3 |
+
|
| 4 |
+
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
|
| 8 |
+
widget:
|
| 9 |
+
- text: "Potpredsjednik Vlade i ministar branitelja Tomo Medved komentirao je Vladine planove za zakonsku zabranu pozdrava 'za dom spremni'."
|
| 10 |
+
---
|
| 11 |
+
# bcms-bertic-parlasent-bcs-bi
|
| 12 |
+
|
| 13 |
+
Binary text classification model based on [`classla/bcms-bertic`](https://huggingface.co/classla/bcms-bertic) and fine-tuned on the BCS Political Sentiment dataset.
|
| 14 |
+
|
| 15 |
+
This classifier classifies text into only two categories: Negative vs. Other. For the ternary classifier (Negative, Neutral, Positive) check [this model](https://huggingface.co/classla/bcms-bertic-parlasent-bcs-ter).
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
## Fine-tuning hyperparameters
|
| 19 |
+
|
| 20 |
+
Fine-tuning was performed with `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.
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
|
| 24 |
+
model_args = {
|
| 25 |
+
"num_train_epochs": 9
|
| 26 |
+
}
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Performance in comparison with ternary classifier
|
| 30 |
+
|
| 31 |
+
| model | average macro F1 |
|
| 32 |
+
|-------------------------------------------|------------------|
|
| 33 |
+
| bcms-bertic-parlasent-bcs-ter | 0.7941 ± 0.0101 |
|
| 34 |
+
| bcms-bertic-parlasent-bcs-bi (this model) | 0.8999 ± 0.012 |
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## Citation
|
| 39 |
+
|
| 40 |
+
If you use the model, please cite the following paper on which the original model is based:
|
| 41 |
+
```
|
| 42 |
+
@inproceedings{ljubesic-lauc-2021-bertic,
|
| 43 |
+
title = "{BERT}i{\'c} - The Transformer Language Model for {B}osnian, {C}roatian, {M}ontenegrin and {S}erbian",
|
| 44 |
+
author = "Ljube{\v{s}}i{\'c}, Nikola and Lauc, Davor",
|
| 45 |
+
booktitle = "Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing",
|
| 46 |
+
month = apr,
|
| 47 |
+
year = "2021",
|
| 48 |
+
address = "Kiyv, Ukraine",
|
| 49 |
+
publisher = "Association for Computational Linguistics",
|
| 50 |
+
url = "https://www.aclweb.org/anthology/2021.bsnlp-1.5",
|
| 51 |
+
pages = "37--42",
|
| 52 |
+
}
|
| 53 |
+
```
|
| 54 |
+
|