Skip to content

Basics · Raw WordPiece Subwords vs BIO-Merged Spans · 18-Class OntoNotes Lab · 10.4 MB WASM q8

Threshold & BIO-Merge Lab

See how Transformers.js 3.7.5 emits subword-level BIO predictions (such as ac + ##me or 202 + ##6) and experiment at 0 ms with confidence cutoffs, score aggregation (mean / min / first / max), orphan I-* handling, and all 18 OntoNotes entity classes.

1. Passage & Live 0 ms Post-Processing Controls

0.35

Initialise NeuroBERT-NER above to compare raw WordPiece subwords against BIO-merged spans.

Inference ms–
All WordPiece toks–
Non-O subwords–
Merged spans–
Subword splits (##)–
Orphan I-* count–

Raw WordPiece BIO Stream

Exact subword output from pipeline("token-classification", ...). Rows tinted amber are ## continuations glued during span assembly.

Raw WordPiece subword tokens with BIO tags and scores
Idx Token BIO Score ## Offsets
Awaiting live inference…

Merged Entity Spans (bio-merged)

Merged spans will appear here.
Merged OntoNotes entity spans and subword counts
Entity Class Score Tokens Flags
Awaiting live inference…

2. Full 18-Class OntoNotes Coverage Matrix

Every OntoNotes entity class supported by NeuroBERT-NER (36 B-/I- tags + O). Active classes detected in the current text are highlighted with live hit counts and mean scores.

Show the code · neurobert-core.mjs — alignTokensToText() (uncased WordPiece offset alignment)