APIUp to 28% cheaper than official pricesTry the API →
Hermes
Back to News

Flair's German NER Model Hits 92.31 F1 With Document-Aware Context

flair/ner-german-large hits 92.31 F1 on revised CoNLL-03 German, 948K downloads. Predicts four tags: PER, LOC, ORG, MISC for German text. Built on XLM-RoBERTa large with document-level context via the FLERT approach. Minimal architecture: no CRF, no RNN, just one linear layer on top.

Flair's German NER Model Hits 92.31 F1 With Document-Aware Context
Source
AlphaSignal
Published
Author
AlphaSignal
Read
2 min read

Takeaways

  • flair/ner-german-large hits 92.31 F1 on revised CoNLL-03 German, 948K downloads.
  • Predicts four tags: PER, LOC, ORG, MISC for German text.
  • Built on XLM-RoBERTa large with document-level context via the FLERT approach.
  • Minimal architecture: no CRF, no RNN, just one linear layer on top.
  • Three-line usage via Flair, runs locally with no API costs attached.
  • Ideal for GDPR redaction, knowledge graphs, and German news or legal extraction pipelines.

Flair’s German NER model extracts four entity types and reports an entity-level F1 score of 92.31 on the revised German CoNLL-03 benchmark. Its FLERT architecture can use neighboring sentences when classifying a span, giving developers a local model with structured output and a standard Python API.

Four labels, one large encoder

PropertyValue
BackboneXLM-RoBERTa Large
Approximate parameters560 million
Entity labelsPER, LOC, ORG, MISC
Reported benchmark92.31 entity-level F1
Training corpusRevised German CoNLL-03
ContextNeighboring sentences through FLERT
OutputFlat entity spans with labels and confidence scores

The four labels cover people, locations, organizations, and miscellaneous named entities. CoNLL scoring requires an exact span boundary and the correct class, so a partially matched organization name receives no credit. The reported result provides an in-domain reference for newswire text; production accuracy depends on the target domain, preprocessing, and annotation policy.

Neighboring sentences supply extra evidence

Sentence-level NER can struggle when a name has several plausible meanings or appears in abbreviated form after an earlier mention. The FLERT paper addresses that limitation by placing surrounding document text into the transformer input and predicting labels for the target sentence.

Flair enables this behavior through use_context=True in its transformer embeddings. A standalone Sentence remains valid input and provides only its own tokens as evidence. Multi-sentence inference should preserve sentence order and document boundaries so the model can inspect related text without leaking context from another document.

Reporting is indexed from AlphaSignal. Rights remain with the original publisher and cited sources.

Read original report

Sources

  1. 01huggingface.co
  2. 02arxiv.org
  3. 03github.com
  4. 04huggingface.co