Live 18-Class Entity Highlighter
0 spansdo_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.
| Idx | WordPiece | BIO Tag | Score | Subword | Offsets |
|---|---|---|---|---|---|
| Run extraction to inspect raw WordPiece BIO tags. | |||||
At a Glance & Architecture
boltuix/NeuroBERT-NER
onnx-community/NeuroBERT-NER-ONNX
token-classification
## 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
-
18 OntoNotes classes in 10.4 MB: Unlike 4-class CoNLL-2003 taggers (PER/ORG/LOC/MISC),
NeuroBERT-NER distinguishes
MONEY,DATE,TIME,PERCENT,QUANTITY,LAW,FAC, andPRODUCTin one 10.37 MB download. - Sub-30 ms CPU WASM latency: A 2-layer, 256-hidden encoder runs fast enough for keystroke-adjacent structured tagging, invoice parsing, and log triage without requiring WebGPU.
- Zero-egress privacy: Sensitive financial records, incident logs, and legal clauses are parsed entirely in a browser Web Worker — no third-party NLP API keys or server round trips.
Explore the NeuroBERT-NER Use-Case Ladder
Basics · BIO & Threshold Lab
Compare raw WordPiece subwords (ac + ##me) against BIO-merged spans, scrub thresholds at 0 ms, and inspect all 18 OntoNotes classes.
Practical · Offline Batch Extractor
Extract entities from invoices, audit logs, and CSVs with Pause/Resume/Cancel controls plus OWASP formula-safe CSV and JSONL export.
Wild · Tokenization Stress Suite
Probe uncased casing loss, hyphenated compounds, URLs/emails, and noisy ASR transcripts to see how WordPiece splits flip BIO tags.
Multi-model · NER → MS MARCO Reranker
Chain NeuroBERT-NER (10.4 MB) with built MS MARCO MiniLM (23.9 MB q8) for entity-grounded local passage retrieval and reranking.