All credit goes to
Certainly (previously known as BotXO), who developed Danish BERT. For data and training details see their
GitHub repository or
this article. You can also visit their
organization page on Hugging Face.
It is both available in TensorFlow and Pytorch format.
The original TensorFlow version can be downloaded using
this link.
Here is an example on how to load Danish BERT in PyTorch using the
🤗Transformers library:
1from transformers import AutoTokenizer, AutoModelForPreTraining
2
3tokenizer = AutoTokenizer.from_pretrained("Maltehb/danish-bert-botxo")
4model = AutoModelForPreTraining.from_pretrained("Maltehb/danish-bert-botxo")
5