use case · multi-model · OPUS-MT DA→EN (106.87 MB) → Multilingual E5 Small (118.31 MB) · ~225 MB ONNX · Apache-2.0 + MIT

DA → EN Translation & Cross-Lingual Semantic Back-Check (Multilingual E5)

Translate Danish documents into English and verify semantic fidelity on-device without a reference (~225 MB ONNX combined across two isolated Web Workers): Stage 1 runs OPUS-MT DA→EN (106.87 MB q8 WASM, Apache-2.0), then Stage 2 reuses Multilingual E5 Small (../../multilingual-e5-small/worker.js, Xenova/multilingual-e5-small, 118.31 MB q8 WASM, MIT) to embed both the original Danish query and the live English translation in one 384-dim meaning space and rank it against semantic distractors.

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

Stage 1 · OPUS-MT DA→EN (106.87 MB)

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

Stage 2 · Multilingual E5 Small (118.31 MB)

Reuses ../../multilingual-e5-small/worker.js · Xenova/multilingual-e5-small · q8 WASM · MIT

2 · Danish → English Translation + Cross-Lingual E5 Semantic Audit

Curated Danish presets (with semantic distractor foils)
Drop a Danish .txt or .md file here, paste via clipboard, or upload a local file:
billing-dkk

Prepare both workers above (or either stage independently) to run local DA→EN translation and Multilingual-E5 cross-lingual verification.

E5 cos(DA, EN)—
Rank vs foils—
Margin (+Δ)—
Numeric / kr. parity—
Stage 1 / Stage 2 ms—
NaN count—

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

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

Tokens: — · Latency: —

Stage 2 · Cross-Lingual Alignment Meter (Multilingual E5)

Waiting for Stage 2 (Multilingual E5 Small) 384-d cosine similarity…

Embedding: 384-d L2 · Latency: —

Stage 2 · Cross-Lingual Candidate Ranking (Live EN Translation vs Distractor Foils)

Rank Kind English Passage (E5 passage:) cos(DA, EN)
Run Stage 2 above to rank the live English translation against distractor passages.
Show the code — Reusing multilingual-e5-small/worker.js for Stage 2 cross-lingual check
Show the code — Danish comma-decimal & kr./USD hallucination check

Stage 1: Helsinki-NLP/opus-mt-da-en → Xenova/opus-mt-da-en (106.87 MB q8 WASM, Apache-2.0). Stage 2: intfloat/multilingual-e5-small → Xenova/multilingual-e5-small (118.31 MB q8 WASM, MIT).