Multi-model · mBERT Uncased (171.59 MB q8 · Apache-2.0) → DistilBERT Cased Sentiment (135.95 MB q8 · Apache-2.0)

2-Stage Multilingual Audit: Uncased Cloze × Sentiment Shift

Chain two independent multilingual encoders offline (307.54 MB combined WASM q8): Stage 1 (google-bert/bert-base-multilingual-uncased via Xenova/bert-base-multilingual-uncased, 171.59 MB, Apache-2.0) generates top-K uncased [MASK] completions across EN/FR/ES/DE/JA/ZH/AR, then Stage 2 (Xenova/distilbert-base-multilingual-cased-sentiments-student, 135.95 MB, Apache-2.0, reusing ../distilbert-base-multilingual-cased-sentiments-student/worker.js) audits how each candidate fill shifts 3-class sentiment polarity (positive / neutral / negative).

Uncased Cloze Propositions → Cased Multilingual Sentiment Audit: Stage 1 operates on a 105,879-token uncased WordPiece vocabulary (102 languages), while Stage 2 re-tokenizes each completed sentence through its 119,547-token cased DistilBERT multilingual sentiment head to measure downstream polarity shifts across scripts.

1. Two Independent On-Device Models (307.54 MB Combined)

Stage 1 · mBERT Uncased Fill-Mask (171.59 MB WASM q8)

Xenova/bert-base-multilingual-uncased · fill-mask · Apache-2.0

Stage 2 · DistilBERT Cased Sentiment (135.95 MB WASM q8)

Xenova/distilbert-base-multilingual-cased-sentiments-student · text-classification · Apache-2.0

2. Top-K Candidate Sentiment Shift Audit Workbench

Stage 1 proposes top-K uncased WordPiece candidates; Stage 2 measures how each fill flips net sentiment polarity across EN, FR, ES, DE, JA, ZH, and AR.

Initialize both stages above to run the 307.54 MB Cloze × Sentiment Shift Audit.

Stage 1 MLM #1–
Most Positive Cand–
Most Negative Cand–
Polarity Spread–
Stage 1 / Stage 2 ms–
Combined NaN check–
Stage 1 mBERT Uncased cloze candidates audited by Stage 2 DistilBERT Multilingual Sentiment
S1 Rank Candidate S1 MLM Prob Stage 2 Sentiment Net Polarity Shift vs #1 Completed Sentence
Run Stage 1 → Stage 2 above to audit candidate sentiment shifts.

3. Inspect Reused Stage 2 Client & Sentiment Shift Logic

Show the code · mbert-uncased-client.js — DistilBertSentimentClient (reusing ../distilbert-base-multilingual-cased-sentiments-student/worker.js)
Show the code · mbert-uncased-core.mjs — analyzeSentimentShiftAudit()