use case · multi-model · OPUS-MT PL→EN (111.50 MB) → DistilBERT SST-2 (67.58 MB) · ~179 MB ONNX · Apache-2.0

PL → EN Support-Ticket Translation & English Sentiment Triage (DistilBERT SST-2)

Translate Polish customer support tickets and reviews into English and triage sentiment polarity on-device (~179 MB ONNX / ~186 MB first visit across two isolated Web Workers): Stage 1 runs OPUS-MT PL→EN (111.50 MB q8 WASM, Apache-2.0), then Stage 2 reuses DistilBERT SST-2 English (../../distilbert-base-uncased-finetuned-sst-2-english/worker.js, Xenova/distilbert-base-uncased-finetuned-sst-2-english, 67.58 MB q8 WASM, Apache-2.0) to score POSITIVE vs NEGATIVE logits, margin, and priority escalation.

1 · Workflow models (~179 MB ONNX · two isolated WASM workers)

Stage 1 · OPUS-MT PL→EN (111.50 MB)

Helsinki-NLP/opus-mt-pl-en → Xenova/opus-mt-pl-en · q8 WASM · Apache-2.0

Stage 2 · DistilBERT SST-2 English (67.58 MB)

Reuses ../../distilbert-base-uncased-finetuned-sst-2-english/worker.js · Xenova/distilbert-base-uncased-finetuned-sst-2-english · q8 WASM · Apache-2.0

2 · Polish → English Translation + SST-2 Sentiment Triage Pipeline

Curated Polish support tickets & customer reviews
Drop a Polish .txt or .md ticket file here, paste via clipboard, or upload a local file:
billing-defect-neg

Prepare both workers above (or either stage independently) to run local PL→EN translation and DistilBERT SST-2 English triage.

SST-2 Sentiment—
Confidence—
Logit margin |Δz|—
Numeric / zł parity—
Stage 1 / Stage 2 ms—
NaN count—

Stage 1 · English Handoff (OPUS-MT PL→EN)

Waiting for Stage 1 (OPUS-MT PL→EN) translation…

Tokens: — · Latency: —

Stage 2 · English SST-2 Triage & Raw Logits (DistilBERT)

Waiting for Stage 2 (DistilBERT SST-2) English sentiment triage…

WordPiece tokens: — · Entropy: — · Latency: —

Show the code — Reusing distilbert-base-uncased-finetuned-sst-2-english/worker.js for Stage 2 triage
Show the code — Polish comma-decimal & zł/USD hallucination check

Stage 1: Helsinki-NLP/opus-mt-pl-en → Xenova/opus-mt-pl-en (111.50 MB q8 WASM, Apache-2.0). Stage 2: distilbert/distilbert-base-uncased-finetuned-sst-2-english → Xenova/distilbert-base-uncased-finetuned-sst-2-english (67.58 MB q8 WASM, Apache-2.0).