Skip to content

token-classification · text · 2-Layer Uncased BERT (~11M) · Transformers.js 3.7.5 WASM · q8 · 10.4 MB · Apache-2.0

NeuroBERT-NER — 18-Class OntoNotes Entity Highlighter

Compact 10.37 MB (10.4 MB catalog, q8 CPU WASM) English NER predicting 37 BIO tags across all 18 OntoNotes entity classes in under 30 ms locally — zero server uploads.

boltuix/NeuroBERT-NER onnx-community/NeuroBERT-NER-ONNX token-classification WASM · q8 · 10.4 MB Apache-2.0

Live 18-Class Entity Highlighter

0 spans
Run extraction to view clickable 18-class OntoNotes entity spans.
Click any highlighted entity above to isolate its raw WordPiece BIO tokens. Tokenizer is uncased (do_lower_case: true).

Initialise the 10.4 MB NeuroBERT-NER model above to highlight 18-class OntoNotes entities locally.

Per-Token BIO Inspector

Select a highlighted entity above to isolate its constituent WordPiece tokens, raw BIO tags, and character offsets.

Per-token WordPiece BIO predictions and character offsets
Idx WordPiece BIO Tag Score Subword Offsets
Run extraction to inspect raw WordPiece BIO tags.

At a Glance & Architecture

Upstream Model Card boltuix/NeuroBERT-NER
ONNX Repository onnx-community/NeuroBERT-NER-ONNX
Pipeline Task token-classification
Download Size & Dtype 10.4 MB catalog (10.37 MB · 10,374,043 B · q8 WASM)
Encoder Architecture BertForTokenClassification · 2 layers · 4 heads · 256-d · ~11M
Label Space 37 BIO tags (18 OntoNotes B-/I- classes + O)
Base & Training Data boltuix/NeuroBERT-Mini · boltuix/conll2025-ner (English)
License & Runtime Apache-2.0 · Shared Transformers.js 3.7.5 (WASM)
Why Client-Side BIO + ## Merging Matters: In Transformers.js 3.7.5, the token-classification pipeline outputs subword-level BIO items (e.g. B-ORG: ac, B-ORG: ##me, I-ORG: robotics) even when aggregation_strategy is passed. Calling pipe(text, { ignore_labels: ["O"] }) and applying our deterministic BIO + WordPiece ## merger reconstructs exact character spans while keeping every subword score inspectable.
All 37 BIO labels & 18 OntoNotes classes (config.json id2label)

How the API Works

import { pipeline } from "../../lib/webai.js"; // shared Transformers.js 3.7.5 pin

const ner = await pipeline("token-classification", "onnx-community/NeuroBERT-NER-ONNX", {
  device: "wasm",
  dtype: "q8",
});
const subwords = await ner(
  "Dr. Elena Vance signed a $2.4 million contract with Acme Robotics in Zurich on March 14, 2026.",
  { ignore_labels: ["O"] },
);
// Then merge adjacent ## subwords + B-/I- BIO chains with mergeBioSubwords(text, subwords)
Show the code · worker.js — extractEntities() (off-main-thread WASM q8)
Show the code · neurobert-core.mjs — mergeBioSubwords() (deterministic BIO + ## merger)

Why It Matters

Explore the NeuroBERT-NER Use-Case Ladder