Downloads · 30 days
20
7% of all-time downloads
learnrr/roberta-NER-conll2003
roberta-NER-conll2003 is a token classification model from learnrr. Use it when you need labels on individual words, such as names. The card lists the license as mit.
This model is a fine-tuned version of roberta-base for the Named Entity Recognition (NER) task using the CoNLL-2003 dataset. It can identify four types of entities: Persons (PER), Organizations (ORG), Locations (LOC),…
Downloads · 30 days
20
7% of all-time downloads
All-time downloads
268
Public
Parameters
124M
496 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors496 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of roberta-base for the Named Entity Recognition (NER) task using the CoNLL-2003 dataset. It can identify four types of entities: Persons (PER), Organizations (ORG), Locations (LOC), and Miscellaneous (MISC).
| Metric) | Value |
|---|---|
| F1 Score | 95.99% |
| Precision | 95.61% |
| Recall | 96.38% |
| Accuracy | 99.29% |
| Eval Loss | 0.0464 |
from transformers import pipeline
model_id = "learnrr/roberta-NER-conll2003"
text = "Apple is looking at buying U.K. startup for $1 billion"
results = nlp(text)
for entity in results:
print(f"entity: {entity['word']} | class: {entity['entity_group']} | confidence: {entity['score']:.4f}")