Stage 1 · English Handoff (OPUS-MT DA→EN)
Tokens: — · Latency: —
use case · multi-model · OPUS-MT DA→EN (106.87 MB) → Multilingual E5 Small (118.31 MB) · ~225 MB ONNX · Apache-2.0 + MIT
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.
Helsinki-NLP/opus-mt-da-en → Xenova/opus-mt-da-en · q8 WASM · Apache-2.0
Reuses ../../multilingual-e5-small/worker.js · Xenova/multilingual-e5-small · q8 WASM · MIT
.txt or .md file here, paste via clipboard, or upload a local file:
Prepare both workers above (or either stage independently) to run local DA→EN translation and Multilingual-E5 cross-lingual verification.
Tokens: — · Latency: —
Embedding: 384-d L2 · Latency: —
| Rank | Kind | English Passage (E5 passage:) |
cos(DA, EN) |
|---|---|---|---|
| Run Stage 2 above to rank the live English translation against distractor passages. | |||
| Preset | English Translation | cos(DA, EN) | Rank · Margin | Total ms |
|---|
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).