🚀 BERTje: A Dutch BERT model
BERTje is a pre - trained BERT model for the Dutch language. It was developed at the University of Groningen, aiming to provide high - quality natural language processing capabilities for Dutch text.
🚀 Quick Start
Model description
BERTje is a Dutch pre - trained BERT model developed at the University of Groningen.
For more details, you can check out our paper on arXiv, the code on Github, and related work on Semantic Scholar.
The paper and Github page mention fine - tuned models that are available here.
How to use
from transformers import AutoTokenizer, AutoModel, TFAutoModel
tokenizer = AutoTokenizer.from_pretrained("GroNLP/bert-base-dutch-cased")
model = AutoModel.from_pretrained("GroNLP/bert-base-dutch-cased")
model = TFAutoModel.from_pretrained("GroNLP/bert-base-dutch-cased")
⚠️ Important Note
The vocabulary size of BERTje has changed in 2021. If you use an older fine - tuned model and experience problems with the GroNLP/bert-base-dutch-cased
tokenizer, use the following tokenizer:
tokenizer = AutoTokenizer.from_pretrained("GroNLP/bert-base-dutch-cased", revision="v1")
Benchmarks
The arXiv paper lists benchmarks. Here are a couple of comparisons between BERTje, multilingual BERT, BERT - NL and RobBERT that were done after writing the paper. Unlike some other comparisons, the fine - tuning procedures for these benchmarks are identical for each pre - trained model. You may be able to achieve higher scores for individual models by optimizing fine - tuning procedures.
More experimental results will be added to this page when they are finished. Technical details about how to fine - tune these models will be published later, as well as downloadable fine - tuned checkpoints.
All of the tested models are base sized (12) layers with cased tokenization.
Headers in the tables below link to original data sources. Scores link to the model pages that corresponds to that specific fine - tuned model. These tables will be updated when more simple fine - tuned models are made available.
Named Entity Recognition
Part - of - speech tagging
BibTeX entry and citation info
@misc{devries2019bertje,
\ttitle = {{BERTje}: {A} {Dutch} {BERT} {Model}},
\tshorttitle = {{BERTje}},
\tauthor = {de Vries, Wietse and van Cranenburgh, Andreas and Bisazza, Arianna and Caselli, Tommaso and Noord, Gertjan van and Nissim, Malvina},
\tyear = {2019},
\tmonth = dec,
\thowpublished = {arXiv:1912.09582},
\turl = {http://arxiv.org/abs/1912.09582},
}