Published September 13, 2020 | Version v1
Other Open

BERT-DE-NER

Authors/Creators

  • 1. Gawron

Description

BERT-DE-NER

This is a German BERT model fine-tuned for named entity recognition.

Base model & training

This model is based on bert-base-german-dbmdz-cased and has been fine-tuned for NER on the training data from [GermEval2014](https://sites.google.com/site/germeval2014ner).

Model results

The results on the test data from GermEval2014 are (entities only): 

| Precision | Recall | F1-Score |

|----------:|-------:|---------:|

|   0.817   |  0.842 |    0.829 |

 

How to use

>>> from transformers import pipeline
>>> classifier = pipeline('ner', model="fhswf/bert_de_ner")
>>> classifier('Von der Organisation "medico international" hieß es, die EU entziehe sich seit vielen Jahren der Verantwortung für die Menschen an ihren Außengrenzen.')

[{'word': 'med', 'score': 0.9996621608734131, 'entity': 'B-ORG', 'index': 6},
 {'word': '##ico', 'score': 0.9995362162590027, 'entity': 'I-ORG', 'index': 7},
 {'word': 'international',
  'score': 0.9996932744979858,
  'entity': 'I-ORG',
  'index': 8},
 {'word': 'eu', 'score': 0.9997008442878723, 'entity': 'B-ORG', 'index': 14}]

 

Files

README.md

Files (880.2 MB)

Name Size
md5:c941049c4870039987717c069debabcb
439.9 MB Download
md5:6f38e98a4fda9529326fa025f54e5701
1.3 kB Preview Download
md5:dac0ff28f80f425544f99b51b4451e87
440.1 MB Download
md5:5787056a1ea58629b0c71cfc37728ce4
239.8 kB Preview Download