This model is a fine-tuned version of
tartuNLP/EstBERT
.
It achieves the following results on the test set:
Loss: 2.0552
Accuracy: 0.8329
How to use?
You can use this model with the Transformers pipeline for text classification.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("tartuNLP/EstBERT128_Rubric")
model = AutoModelForSequenceClassification.from_pretrained("tartuNLP/EstBERT128_Rubric")
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
text = "Kaia Kanepi (WTA 57.) langes USA-s Charlestonis toimuval WTA 500 kategooria tenniseturniiril konkurentsist kaheksandikfinaalis, kaotades poolatarile Magda Linette'ile (WTA 64.) 3 : 6, 6 : 4, 2 : 6."
result = nlp(text)
print(result)
[{'label': 'SPORT', 'score': 0.9999998807907104}]
Model description
A single linear layer classifier is fit on top of the last layer [CLS] token representation of the EstBERT model. The model is fully fine-tuned during training.
Intended uses & limitations
This model is intended to be used as it is. We hope that it can prove to be useful to somebody but we do not guarantee that the model is useful for anything or that the predictions are accurate on new data.
Citation information
If you use this model, please cite:
@inproceedings{tanvir2021estbert,
title={EstBERT: A Pretrained Language-Specific BERT for Estonian},
author={Tanvir, Hasan and Kittask, Claudia and Eiche, Sandra and Sirts, Kairit},
booktitle={Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa)},
pages={11--19},
year={2021}
}
Training and evaluation data
The model was trained and evaluated on the rubric categories of the
Estonian Valence dataset
.
The data was split into train/dev/test parts with 70/10/20 proportions.
The nine rubric labels in the Estonian Valence dataset are:
ARVAMUS (opinion)
EESTI (domestic)
ELU-O (life)
KOMM-O-ELU (comments)
KOMM-P-EESTI (comments)
KRIMI (crime)
KULTUUR (culture)
SPORT (sports)
VALISMAA (world)
It probably makes sense to treat the two comments categories (KOMM-O-ELU and KOMM-P-EESTI) as a single category.
Training procedure
The model was trained for maximu 100 epochs using early stopping procedure. After every epoch, the accuracy was calculated on the development set.
If the development set accuracy did not improve for 20 epochs, the training was stopped.
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 5e-05
train_batch_size: 16
eval_batch_size: 16
seed: 3
optimizer: Adam with betas=(0.9,0.98) and epsilon=1e-06
EstBERT128_Rubric huggingface.co is an AI model on huggingface.co that provides EstBERT128_Rubric's model effect (), which can be used instantly with this tartuNLP EstBERT128_Rubric model. huggingface.co supports a free trial of the EstBERT128_Rubric model, and also provides paid use of the EstBERT128_Rubric. Support call EstBERT128_Rubric model through api, including Node.js, Python, http.
EstBERT128_Rubric huggingface.co is an online trial and call api platform, which integrates EstBERT128_Rubric's modeling effects, including api services, and provides a free online trial of EstBERT128_Rubric, you can try EstBERT128_Rubric online for free by clicking the link below.
tartuNLP EstBERT128_Rubric online free url in huggingface.co:
EstBERT128_Rubric is an open source model from GitHub that offers a free installation service, and any user can find EstBERT128_Rubric on GitHub to install. At the same time, huggingface.co provides the effect of EstBERT128_Rubric install, users can directly use EstBERT128_Rubric installed effect in huggingface.co for debugging and trial. It also supports api for free installation.