Multi-model · mBERT 5-Star Sentiment (171.16 MB q8 · MIT) × mBERT 201-Language Guard (25.84 MB q8 · MIT)

5-Star Multilingual Sentiment × 201-Language Scope Guard

Chain two independent WASM models totaling 197.00 MB offline: Stage 1 (Xenova/bert-base-multilingual-uncased-sentiment, 171.16 MB total q8, MIT) scores 1★–5★ review sentiment, while Stage 2 (onnx-community/language_detection-ONNX, 25.84 MB total q8, MIT, reusing ../mbert-language-detection/worker.js) verifies whether the text falls inside nlptown's 6 trained languages (EN/NL/DE/FR/IT/ES) or triggers an out-of-scope guard.

1. Two Independent On-Device Models (197.00 MB Total)

Stage 1 · mBERT 5-Star Review Sentiment (171.16 MB total WASM q8 · MIT)

Stage 2 · mBERT 201-Language Detector (25.84 MB total WASM q8 · MIT)

2. 5-Star Sentiment × 201-Language Scope Verification

Initialize both stages above to run the 197.00 MB 5-Star Sentiment × 201-Language Scope Guard workflow.

Language-Scope & Star Verdict: Run both stages above to verify whether the review language is inside nlptown's 6-language training domain.
Stage 1 Star Call–
Expected E[S] · σ–
Stage 2 FLORES-200–
Scope Guard Status–
Routing Action–
Stage 1 / Stage 2 ms–

Stage 1 · 5-Star Probabilities

Run Stage 1 to inspect 1★–5★ review probabilities.

Stage 2 · Top FLORES-200 Language Candidates (201 Classes)

Top FLORES-200 language probabilities detected by Stage 2 mBERT Language Detection
Rank Language (FLORES-200) Confidence nlptown Scope
Run Stage 2 to inspect detected languages.

3. Multilingual Scope × 5-Star Verification Matrix

Every completed 2-stage check logs here, flagging Out-of-Scope languages and High-Spread mixed reviews before an automated queue acts on predicted stars.

5-star sentiment predictions paired with Stage 2 201-language FLORES-200 scope verification
Preset / Item Stage 1 Stars E[S] · σ Stage 2 Language Guard Outcome Latency Review Text
Run the chained pipeline above to populate the verification matrix.

4. Inspect Reused Language Client & Scope Guard Logic

Show the code · nlptown-client.js — MbertLanguageClient (reusing ../mbert-language-detection/worker.js)
Show the code · nlptown-core.mjs — reconcileStarsWithLanguage()