use case · wild · NER → graph · WASM q8 · 65.77 MB · Apache-2.0

Entity Co-Occurrence Network & Selective Redactor

Every PER, ORG, LOC and MISC entity DistilBERT-NER finds becomes a node; two entities named in the same sentence share an edge. Explore the cast of a story with mouse, touch or keyboard — then black out any class of entity in one click before you share the text.

1 · Story

2 · Co-occurrence network

Show on graph:

Build the network to explore it.

Entities (nodes)–
Links (edges)–
Sentences–
Most connected–
NER latency–

All entities

Select an entity

Click a node, use the list above, or focus the graph and use the arrow keys.

Co-occurs with

    Mentioned in

    3 · Selective redaction by entity class

    Redact these classes:

    Original with entities

    Build the network first.

    Redacted preview

    Redacted text will appear here.
    Show the code — ner-core.mjs: buildCooccurrence() (sentence-level entity links)
    Show the code — ner-core.mjs: layoutGraph() (seeded force / circle layout)
    Show the code — ner-core.mjs: redactEntities() (tag / block / pseudonym)