translation · MarianMT English→Dutch · q8 · WASM · 115.20 MB ONNX (~61.3 MB decoder) · Apache-2.0
OPUS-MT EN→NL — English-to-Dutch MarianMT Studio
University of Helsinki's 6+6 MarianMT encoder-decoder
(Helsinki-NLP/opus-mt-en-nl,
quantized in Xenova/opus-mt-en-nl
to 61.26 MB merged decoder + 53.94 MB encoder = 115.20 MB q8 ONNX / 121.63 MB incl. tokenizer)
translates English into Dutch entirely inside a local Web Worker — inspecting SentencePiece token chips, decoder latency,
ij digraphs, ë/ï tremas, compounds, and V2/separable-verb grammar on-device.
1 · On-device model (115.20 MB q8 ONNX · 61.26 MB merged decoder + 53.94 MB encoder)
2 · Live English → Dutch Translation Studio
Pick a Dutch grammar/orthography preset, type or paste English text (Ctrl/Cmd+V anywhere on the page),
or drop/upload a .txt, .md, .csv, .json, or .srt file.
Inference runs off the main thread in a dedicated module Web Worker.
.txt, .md, .csv, .json, or .srt file here, paste via clipboard, or choose a file:
Dutch translation (Live MarianMT)
Waiting for runPrepare OPUS-MT EN→NL above to translate English locally in CPU WebAssembly.
3 · See Inside: SentencePiece Chips, Dutch Orthography (ij/ë/ï) & Compounds
Inspect how MarianMT's shared 67,028-piece Unigram SentencePiece vocabulary segments English phrases,
whether Dutch output preserves ij digraphs, trema vowels (ë, ï),
long compounds (≥ 14 chars), V2/separable verb particles, and per-sentence decoder timing.
Dutch orthography, trema, and compound diagnostics appear after translation.
| # | English segment | Dutch translation | Tokens (in→out) | Latency |
|---|---|---|---|---|
| Run a translation above to inspect sentence-by-sentence alignment. | ||||
Dutch Output Per-Word SentencePiece Fertility (67,028 vocab)
Run a translation to inspect Dutch word fertility.
English Source SentencePiece Token Chips
Run a translation to inspect real MarianTokenizer SentencePiece subwords.
4 · Why It Matters & At a Glance
Private on-device English→Dutch translation powers AVG/GDPR-safe Benelux documentation, offline SaaS UI localization, live subtitle tracks, and zero-egress bilingual customer support tools directly inside the browser.
| Upstream model |
Helsinki-NLP/opus-mt-en-nl
|
|---|---|
| Browser ONNX repo |
Xenova/opus-mt-en-nl
(decoder_model_merged_quantized.onnx 61.26 MB + encoder_model_quantized.onnx 53.94 MB = 115.20 MB q8 ONNX; 121.63 MB incl. tokenizer.json 6.43 MB + configs)
|
| Pipeline task & runtime | translation · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm |
| Architecture | MarianMTModel (6 encoder + 6 decoder layers, d_model=512, 8 attention heads, Swish FFN=2048, max_length=512, vocab_size=67028) |
| Special tokens | pad=<pad> (67027), eos=</s> (0), unk=<unk> (1) · decoder_start_token_id=67027 · config default num_beams=4 |
| Upstream benchmark | Tatoeba EN→NL: 57.1 BLEU · 0.730 chr-F (OPUS opus-2019-12-04) |
| License | Apache-2.0 (University of Helsinki) |
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — English sentence splitter preserving abbreviations & decimals
Show the code — Dutch ij digraph, trema (ë/ï), compound & u/je register analyzer
Explore Dutch compound fusion, V2 word order & separable verbs alongside Beam 1 vs 2 vs 4 vs greedy ablation.
Practical · Cancellable Localization Batch WorkbenchMulti-file .SRT, RFC 4180 .CSV column picker, .JSON & .TXT batch translation with mid-batch Cancel and TMX 1.4/SRT/CSV/MD exports.
Wild · Adversarial Translation Stress Lab6 live probes: >512-token truncation check, compound splits, English false-friends, code/URL parity, and mid-suite Cancel.
Multi-Model · EN→NL→EN Round-Trip VerifierChain OPUS-MT EN→NL (115.20 MB) into OPUS-MT NL→EN (115.20 MB) to measure BLEU, chrF, numeric parity & semantic drift.