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
Product review or feedback in any language (6 in-scope or 195 out-of-scope)
Run Chained Scope & Star Check (197.0 MB)
Run Stage 1 Only (5-Star)
Run Stage 2 Only (Language ID)
Verify All 6 Presets
Export Matrix CSV
Export Matrix JSON
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()
▸