Multi-model · Opus-MT JA→EN (108.71 MB q8 · Apache-2.0) → DeBERTa-v3 Zero-Shot NLI (87.3 MB q8 · MIT)
Japanese Ticket → English → DeBERTa-v3 Zero-Shot Triage
Stage 1 (Xenova/opus-mt-ja-en, 108.71 MB WASM q8,
Apache-2.0) translates incoming Japanese customer support tickets into English off-thread.
Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.3 MB WASM q8,
MIT, reusing ../../zero-shot-text/worker.js) scores custom routing
queues via dynamic res.classNames NLI mapping — 196 MB total, 100% offline.
1 · Two Independent On-Device Models (196 MB Total)
Stage 1 · Opus-MT JA→EN (108.71 MB WASM q8)
Helsinki-NLP/opus-mt-ja-en → Xenova/opus-mt-ja-en · translation · Apache-2.0
Stage 2 · DeBERTa-v3 Zero-Shot NLI (87.3 MB WASM q8)
Xenova/nli-deberta-v3-xsmall (reusing ../../zero-shot-text/worker.js) · MIT
2 · Japanese Support Ticket & Routing Queues
Drop a Japanese
.txt / .md ticket file, paste with Ctrl/Cmd+V, or upload:
0 chars
Translated English handoff (Stage 1 → Stage 2)
Waiting for Stage 1
Run Stage 1 (Opus-MT JA→EN) to produce the English handoff fed into DeBERTa-v3 NLI.
Top routing queue—
Top NLI score—
Stage 1 / Stage 2 ms—
Stage 2 id2label order—
NaN count—
3 · Dynamic 3-Way NLI Queue Scores (via res.classNames)
| Rank | Routing Queue | Score | Confidence | Entailment | Neutral | Contradiction |
|---|---|---|---|---|---|---|
| Initialise both models above and run the pipeline to route the Japanese ticket. | ||||||