Multi-model · OPUS-MT ES→EN (113.11 MB q8 · Apache-2.0) → DeBERTa-v3 Zero-Shot NLI (70 MB q8 · MIT)

Bilingual Support Desk: Translate Spanish Tickets, Then Zero-Shot Triage

Stage 1 (Xenova/opus-mt-es-en, 113.11 MB WASM q8, Apache-2.0) translates incoming Spanish customer tickets — from Spain, Mexico, Argentina or Colombia — into English on your device. Stage 2 (Xenova/nli-deberta-v3-xsmall, 70 MB WASM q8, MIT, reusing the shared ../zero-shot-text/worker.js) scores the English against your own routing queues with zero-shot NLI — letting an English-only classifier triage a Spanish inbox (~183 MB total, 100% on-device).

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

Cross-lingual bridge: Each stage runs in its own isolated Web Worker with independent Cache Storage auto-init and memory Release controls. Releasing Stage 1 frees MarianMT while keeping Stage 2 and its last triage result live (and vice versa).

Stage 1 · OPUS-MT ES→EN (113.11 MB WASM q8 · Apache-2.0)

Stage 2 · DeBERTa-v3 Zero-Shot NLI (70 MB WASM q8 · MIT)

2. Cross-Lingual Handoff & Zero-Shot Triage Scores

Top triage queue–
Top NLI score–
Preset expectation–
Stage 1 / Stage 2 ms–
Stage 1 NaN check–
Stage 2 id2label order–

Stage 1 Input · Spanish Ticket

Select a Spanish ticket preset above.

Stage 1 → Stage 2 Handoff · Translated English

Stage 1 (OPUS-MT ES→EN) translation will appear here and feed Stage 2.

Stage 2 · Dynamic 3-Way NLI Triage Scores (from res.classNames)

Zero-shot NLI triage scores with dynamically mapped entailment, neutral, and contradiction probabilities
Rank Triage Queue Score Confidence Entailment Neutral Contradiction
Run the full pipeline above to triage the translated English text.

3. Inspect Multi-Model Client & Dynamic NLI Mapping

Show the code — opus-es.js ZeroShotRoutingClient (reusing ../zero-shot-text/worker.js)
Show the code — opus-es-core.mjs mapNliClassProbabilities() (dynamic res.classNames lookup)