use case · wild · token-classification · WASM q8 · 110.84 MB · MIT
Uncased Homonym & Polysemy Ambiguity Stress Lab
Without capital letters, apple, may, paris, and amazon
have identical surface spellings whether they name an organization, a person, a place, or a fruit. Probe
how dslim/bert-base-NER-uncased disambiguates purely from surrounding context — and where
hashtags, punctuation loss, or OOV hyphenation break boundaries.
1 · Polysemy & adversarial probe selector
Choose a minimal-pair trap or sweep all 6 pairs live:
Context A
Run probe to inspect Context A.
Context B
Run probe to inspect Context B.
2 · Polysemy & boundary-flip scorecard
Live polysemy and boundary comparison across Context A vs Context B probes
Probe pair
Context A entities
Context B entities
Delta / flip observed
Latency
Run a pair or Sweep all 6 pairs to record live flips.
How it works
Show the code — bert-ner-core.mjs: alignTokensToText() (handling #/@, hyphens, and OOV WordPieces)Show the code — bert-ner-core.mjs: mergeEntities() (BIO aggregation and confidence filtering)