Downloads · 30 days
14
22% of all-time downloads
sadhaklal/bert-base-cased-finetuned-conll2003-ner-v2
bert-base-cased-finetuned-conll2003-ner-v2 is a token classification model from sadhaklal. 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.
BERT ("bert-base-cased") finetuned on CoNLL-2003 (Conference on Computational Natural Language Learning).
Downloads · 30 days
14
22% of all-time downloads
All-time downloads
64
Public
Parameters
108M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
BERT ("bert-base-cased") finetuned on CoNLL-2003 (Conference on Computational Natural Language Learning).
The model performs named entity recognition (NER). It pertains to section 2 of chapter 7 of the Hugging Face "NLP Course" (https://huggingface.co/learn/nlp-course/chapter7/2).
It was trained using a custom PyTorch loop with Hugging Face Accelerate.
Experiment tracking: https://wandb.ai/sadhaklal/bert-base-cased-finetuned-conll2003-ner-v2
from transformers import pipeline
model_checkpoint = "sadhaklal/bert-base-cased-finetuned-conll2003-ner-v2"
token_classifier = pipeline("token-classification", model=model_checkpoint, aggregation_strategy="simple")
print(token_classifier("My name is Sylvain and I work at Hugging Face in Brooklyn."))
From the dataset page:
The shared task of CoNLL-2003 concerns language-independent named entity recognition. We will concentrate on four types of named entities: persons, locations, organizations and names of miscellaneous entities that do not belong to the previous three groups.
Examples: https://huggingface.co/datasets/conll2003/viewer
Accuracy on the 'validation' split of CoNLL-2003: 0.9858
Precision on the 'validation' split of CoNLL-2003: 0.9243
Recall on the 'validation' split of CoNLL-2003: 0.947
F1 on the 'validation' split of CoNLL-2003: 0.9355