Downloads · 30 days
9
13% of all-time downloads
RGarrido03/modernbert-conll2003-ner-base
modernbert-conll2003-ner-base is a token classification model from RGarrido03. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of answerdotai/ModernBERT-base on the CoNLL-2003 dataset for Named Entity Recognition (NER).
Downloads · 30 days
9
13% of all-time downloads
All-time downloads
69
Public
Parameters
150M
598 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors598 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of answerdotai/ModernBERT-base on the CoNLL-2003 dataset for Named Entity Recognition (NER).
ModernBERT's architecture allows for efficient processing of long sequences and features optimized attention mechanisms, making it an excellent backbone for dense token-classification tasks like NER.
This model is intended for identifying entities (Persons, Organizations, Locations, and Miscellaneous) in English text.
from transformers import pipeline
ner_pipeline = pipeline("ner", model="RGarrido03/modernbert-conll2003-ner-base", aggregation_strategy="simple")
text = "The CERN headquarters are located in Geneva, Switzerland."
results = ner_pipeline(text)
for entity in results:
print(f"Entity: {entity['word']}, Label: {entity['entity_group']}, Score: {entity['score']:.4f}")
The model was trained on the CoNLL-2003 dataset, which consists of Reuters news stories from 1996 and 1997.
The following hyperparameters were used during training:
| Metric | Value |
|---|---|
| Accuracy | 0.9711 |
| F1 Score | 0.8851 |
| Precision | 0.8721 |
| Recall | 0.8985 |
| Loss | 0.1873 |
| Metric | Value |
|---|---|
| Accuracy | 0.9871 |
| F1 Score | 0.9416 |
| Precision | 0.9357 |
| Recall | 0.9475 |
| Loss | 0.0625 |
If you use this model, please cite the original CoNLL-2003 paper and the ModernBERT work.
@inproceedings{tjong-kim-sang-de-meulder-2003-introduction,
title = "Introduction to the {CoNLL}-2003 Shared Task: Language-Independent Named Entity Recognition",
author = "Tjong Kim Sang, Erik F. and De Meulder, Fien",
booktitle = "Proceedings of the Seventh Conference on Natural Language Learning at {HLT}-{NAACL} 2003",
year = "2003",
url = "https://aclanthology.org/W03-0419",
pages = "142--147",
}