CoolFace
Modelpublic

tartuNLP/EstBERT

sourceHugging Facecc-by-4.0updated 2mo agoView on Hugging Face
4likes2.4kdownloads
Model Card

EstBERT

What's this?

The EstBERT model is a pretrained BERT<sub>Base</sub> model exclusively trained on Estonian cased corpus on both 128 and 512 sequence length of data.

How to use?

You can use the model with the transformers library the following way.

python
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("tartuNLP/EstBERT")
model = AutoModelForMaskedLM.from_pretrained("tartuNLP/EstBERT")

You can also download the pretrained model from here, [EstBERT128]() [EstBERT512]()

Dataset used to train the model

The EstBERT model is trained both on 128 and 512 sequence length of data. For training the EstBERT we used the Estonian National Corpus 2017, which was the largest Estonian language corpus available at the time. It consists of four sub-corpora: Estonian Reference Corpus 1990-2008, Estonian Web Corpus 2013, Estonian Web Corpus 2017 and Estonian Wikipedia Corpus 2017.

Reference to cite

Tanvir et al 2021

Why would I use?

Overall EstBERT performs better in parts of speech (POS), name entity recognition (NER), rubric, and sentiment classification tasks compared to mBERT and XLM-RoBERTa. The comparative results can be found below;

ModelUPOSXPOSMorphbf UPOSbf XPOSMorph
EstBERT_97.89_98.4096.9397.84_98.43__96.80_
mBERT97.4298.0696.2497.4398.1396.13
XLM-RoBERTa97.7898.3696.5397.8098.4096.69
ModelRubric<sub>128</sub>Sentiment<sub>128</sub>Rubric<sub>128</sub>Sentiment<sub>512</sub>
EstBERT_81.70_74.3680.9674.50
mBERT75.6770.2374.9469.52
XLM\-RoBERTa80.3474.5078.62_76.07_
ModelPrecicion<sub>128</sub>Recall<sub>128</sub>F1-Score<sub>128</sub>Precision<sub>512</sub>Recall<sub>512</sub>F1-Score<sub>512</sub>
EstBERT88.4290.38_89.39_88.3589.7489.04
mBERT85.8887.0986.51_88.47_88.2888.37
XLM\-RoBERTa87.55_91.19_89.3487.5090.7689.10

BibTeX entry and citation info

@inproceedings{tanvir-etal-2021-estbert,
    title = {{EstBERT: A Pretrained Language-Specific BERT for Estonian}},
    author = "Tanvir, Hasan  and
      Kittask, Claudia  and
      Eiche, Sandra  and
      Sirts, Kairit",
    editor = "Dobnik, Simon  and
      {\O}vrelid, Lilja",
    booktitle = "Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa)",
    year = "2021",
    address = "Reykjavik, Iceland (Online)",
    publisher = {Link{\"o}ping University Electronic Press, Sweden},
    url = "https://aclanthology.org/2021.nodalida-main.2/",
    pages = "11--19"
}
@misc{tanvir2020estbert,
      title={{EstBERT: A Pretrained Language-Specific BERT for Estonian}}, 
      author={Hasan Tanvir and Claudia Kittask and Kairit Sirts},
      year={2020},
      eprint={2011.04784},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}