BERT Named Entity Recognition (NER) Production Model

This model is a fine-tuned version of bert-base-cased on the CoNLL-2003 dataset for English Named Entity Recognition (NER). It identifies four standard entity types: Persons (PER), Organizations (ORG), Locations (LOC), and Miscellaneous entities (MISC).

Model Details

  • Developed by: Samira Hassan
  • Model type: Token Classification (BertForTokenClassification)
  • Base model: bert-base-cased
  • Language: English (en)
  • Dataset: CoNLL-2003

Evaluation Results

Evaluated on the CoNLL-2003 test split:

Metric Score
Entity F1-Score 0.9016

How to Use

You can load and run inference with this model directly using the Hugging Face transformers pipeline:

from transformers import pipeline

ner_pipeline = pipeline(
    "ner",
    model="Samira-Hassan/bert-ner-production-model",
    aggregation_strategy="simple"
)

text = "Samira Hassan works as a Machine Learning Engineer in Cairo and collaborates with Hugging Face."
entities = ner_pipeline(text)

for entity in entities:
    print(f"{entity['word']} -> {entity['entity_group']} (Score: {entity['score']:.4f})")
Downloads last month
35
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train Samira-Hassan/bert-ner-production-model

Space using Samira-Hassan/bert-ner-production-model 1

Evaluation results