File size: 926 Bytes
fe333e8
 
 
3291538
fe333e8
f7057d7
fe333e8
3291538
fe333e8
 
 
 
 
 
 
 
 
 
 
 
 
 
d66b34a
 
fe333e8
 
 
 
3291538
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
language:
- da
license: apache-2.0
datasets:
- dane
widget:
- text: Jens Peter Hansen kommer fra Danmark
---

# BERT fine-tuned for Named Entity Recognition in Danish

The model tags tokens (in Danish sentences) with named entity tags (BIO format) [PER, ORG, LOC, MISC].
The pretrained language model used for fine-tuning is the [Danish BERT](https://github.com/certainlyio/nordic_bert) by BotXO. 

See the [DaNLP documentation](https://danlp-alexandra.readthedocs.io/en/latest/docs/tasks/ner.html#bert) for more details.

Here is how to use the model:

```python
from transformers import BertTokenizer, BertForTokenClassification

model = BertForTokenClassification.from_pretrained("alexandrainst/da-ner-base")
tokenizer = BertTokenizer.from_pretrained("alexandrainst/da-ner-base")
```

## Training Data 

The model has been trained on the [DaNE](https://danlp-alexandra.readthedocs.io/en/latest/docs/datasets.html#dane).