Name detector 32M (cells)

A 32M-parameter token classifier (O / PERSON) for detecting people's names in English documents and spreadsheet cells. Fine-tuned from jhu-clsp/ettin-encoder-32m (10 layers × 384, ModernBERT architecture) for CPU inference, with additional spreadsheet-cell training examples (company/organisation names and synthetic people in tabular cell formats) to reduce false positives on non-personal spreadsheet cells.

  • Weights: model.safetensors (PyTorch / Transformers) and model.onnx (FP32 ONNX, ~128 MB)
  • Labels: 0: O, 1: PERSON
  • Default window / threshold (namecfg.json): window=510, overlap=128, tau=0.2
  • Licence: MIT (see LICENSE and ATTRIBUTION.md)

Usage

With ONNX Runtime (bundled code/runtime.py, no PyTorch)

import sys
from huggingface_hub import snapshot_download

path = snapshot_download("HMC83/name-detector-32m-cells")
sys.path.insert(0, path + "/code")
import runtime

detector = runtime.Detector(path)
text = "Dear Ms Okonjo,\n\nSam Hill has checked the figures.\n\nPriya Raman"
for f in detector.findings(text):
    print(text[f["start"]:f["end"]], f["score"])

With transformers

from transformers import pipeline

tagger = pipeline(
    "token-classification",
    model="HMC83/name-detector-32m-cells",
    aggregation_strategy="simple",
)
tagger("Sam Hill has checked the figures with Priya.")

Limits

  • Detects person names only; pair with patterns for email addresses, phone numbers, and IDs.
  • Built for English text; other languages are untested.
  • May miss uncommon names or initials, and may occasionally flag organisations, places, or codes that resemble names.
Downloads last month
14
Safetensors
Model size
32M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for HMC83/name-detector-32m-cells

Finetuned
(52)
this model

Datasets used to train HMC83/name-detector-32m-cells