Downloads · 30 days
6
6% of all-time downloads
RGarrido03/modernbert-conll2003-ner-large
modernbert-conll2003-ner-large 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-large on the CoNLL-2003 dataset for Named Entity Recognition (NER).
Downloads · 30 days
6
6% of all-time downloads
All-time downloads
100
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of answerdotai/ModernBERT-large 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-large", 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.9743 |
| F1 Score | 0.8969 |
| Precision | 0.8834 |
| Recall | 0.9108 |
| Loss | 0.1762 |
| Metric | Value |
|---|---|
| Accuracy | 0.9880 |
| F1 Score | 0.9456 |
| Precision | 0.9388 |
| Recall | 0.9525 |
| Loss | 0.0484 |
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",
}