This model is a fine-tuned version of
tartuNLP/EstBERT
on the reduced version of the
Estonian Valence corpus
, where the items with Mixed labels were removed.
The data (containing Positive, Negative and Neutral labels) was split into 70/10/20 train/dev/test splits.
It achieves the following results on the developments split:
Loss: 2.2440
Accuracy: 0.7926
It achieves the following results on the test split:
Loss: 2.7633
Accuracy: 0.7479
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_sentiment")
model = AutoModelForSequenceClassification.from_pretrained("tartuNLP/EstBERT128_sentiment")
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
text = "Viimastel nädalatel on üha valjemaks muutunud hääled, mis läbisegi süüdistavad regionaalminister Madis Kallast röövretke korraldamises rikastesse valdadesse ja teisalt tegevusetuses."
result = nlp(text)
print(result)
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 sentiment categories of the
Estonian Valence corpus
.
The data was split into train/dev/test parts with 70/10/20 proportions.
The Estonian Valence corpus has four sentiment labels:
positive
negative
neutral
mixed
Following
Pajupuu et al., 2016
, the items with mixed labels were removed.
Thus, the model was trained and evaluated on the reduced version of the dataset containing only three labels (positive, negative and neutral).
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: 2
gradient_accumulation_steps: 4
total_train_batch_size: 64
optimizer: Adam with betas=(0.9,0.98) and epsilon=1e-06
EstBERT128_sentiment huggingface.co is an AI model on huggingface.co that provides EstBERT128_sentiment's model effect (), which can be used instantly with this tartuNLP EstBERT128_sentiment model. huggingface.co supports a free trial of the EstBERT128_sentiment model, and also provides paid use of the EstBERT128_sentiment. Support call EstBERT128_sentiment model through api, including Node.js, Python, http.
EstBERT128_sentiment huggingface.co is an online trial and call api platform, which integrates EstBERT128_sentiment's modeling effects, including api services, and provides a free online trial of EstBERT128_sentiment, you can try EstBERT128_sentiment online for free by clicking the link below.
tartuNLP EstBERT128_sentiment online free url in huggingface.co:
EstBERT128_sentiment is an open source model from GitHub that offers a free installation service, and any user can find EstBERT128_sentiment on GitHub to install. At the same time, huggingface.co provides the effect of EstBERT128_sentiment install, users can directly use EstBERT128_sentiment installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
EstBERT128_sentiment install url in huggingface.co: