use case · wild · code-switching & co-occurrence graph · WASM q8 · 135.36 MB · AFL-3.0

Code-Switching Stress Tester & Cross-Script Entity Graph

Real messages rarely stick to one alphabet: reporters mix EN + 中文, EN + العربية, FR + DE, or drop accents and capitals. Stress-test Multilingual DistilBERT-NER on code-switching and perturbations, explore its 2-pass collision-free co-occurrence network, and selectively redact any class.

1 · Code-switching story & perturbation stress test

Perturbation resilience scorecard (live 4-pass stress test)

Entity recall under diacritic stripping, lowercasing and ALL CAPS compared to the original cased run
Perturbation Entities Matched Type flips Missed Recall vs original Mean conf.
Run the stress test to compare perturbations.

2 · 2-pass collision-free cross-script entity network

Show on graph:

Build the network to explore it.

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

All extracted entities (keyboard & touch list)

Select an entity

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

Co-occurs with

    Mentioned in

    3 · Selective multilingual redaction

    Redact these classes:

    Original with entities

    Build the network first.

    Redacted preview

    Redacted text will appear here.
    Show the code — mner-core.mjs: analyzePerturbations() (diacritic-strip & case recall)
    Show the code — mner-core.mjs: buildCooccurrence() (sentence-level cross-script links)
    Show the code — mner-core.mjs: layoutGraph() (seeded force & circle layout)