translation · MarianMT Danish→English · q8 · WASM · 106.87 MB ONNX · Apache-2.0

OPUS-MT DA→EN — Danish-to-English MarianMT Studio

University of Helsinki's 6+6 MarianMT encoder-decoder (Helsinki-NLP/opus-mt-da-en, quantized to 106.87 MB ONNX weights / 112.56 MB first visit incl. tokenizer in Xenova/opus-mt-da-en) translates Danish news, long compound nouns, support tickets, dialogue, and recipes into English entirely inside a local Web Worker — inspecting SentencePiece fertility, æ/ø/å diacritics, compound noun splits, and length penalty on-device.

Runs in browser · WASM translation 106.87 MB q8 ONNX (112.56 MB first visit) Apache-2.0 MarianMT · 58,930 SentencePiece

1 · On-device model (106.87 MB q8 ONNX · encoder 49.79 MB + decoder 57.08 MB)

2 · Live Danish → English Translator

Pick a register preset, type or paste Danish text (Ctrl/Cmd+V anywhere on the page), or drop/upload a .txt, .md, .srt, .csv, or .json file. Inference runs off the main thread in a dedicated module Web Worker.

Curated Danish register presets
Drop a .txt, .md, .srt, .csv, or .json file here, paste via clipboard, or choose a file:
0 chars

English translation (Live MarianMT)

Waiting for run
Prepare OPUS-MT DA→EN above and click Translate to run real on-device MarianMT inference.

Prepare OPUS-MT DA→EN above to translate Danish locally in CPU WebAssembly.

Latency—
Throughput—
In → Out tokens—
Source fertility—
DA compounds / æøå—
NaN count—

3 · See Inside: SentencePiece Fertility, Compound Nouns & æ / ø / å

Inspect how MarianMT's shared 58,930-piece SentencePiece vocabulary segments long Danish compound nouns (Speciallægepraksisplanlægningsstabiliseringsperiode, arbejdsløshedsunderstøttelse), preserves Danish letters (æ ø å Æ Ø Å) and postnominal definites (-et, -en, -ene), and aligns each Danish sentence 1:1 with its English output.

Danish compound-noun, diacritic, and definite-suffix diagnostics appear after translation.

# Danish segment English translation Tokens (in→out) Latency
Run a translation above to inspect sentence-by-sentence alignment.

Danish Source Per-Word SentencePiece Fertility (58,930 vocab)

Run a translation to inspect Danish word fertility.

Danish Source SentencePiece Token Sequence

Run a translation to inspect real MarianTokenizer SentencePiece subwords.

4 · Why It Matters & At a Glance

Private local Danish→English translation enables zero-egress Nordic legal/GDPR review, offline cinema subtitling, customer-support ticket triage, and confidential document localization directly inside the browser without sending sensitive Danish text to third-party APIs.

Upstream model Helsinki-NLP/opus-mt-da-en
Browser ONNX repo Xenova/opus-mt-da-en (encoder_model_quantized.onnx 49.79 MB + decoder_model_merged_quantized.onnx 57.08 MB = 106.87 MB q8; 112.56 MB incl. tokenizer.json 5.69 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=58930)
Special tokens pad=<pad> (58929), eos=</s> (0), unk=<unk> · decoder_start_token_id=58929 · config default num_beams=4
Upstream benchmarks Tatoeba DA→EN: 63.6 BLEU (0.769 chr-F)
License Apache-2.0 (University of Helsinki)
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — Danish sentence splitter preserving f.eks., bl.a., kr. & ordinals
Show the code — Danish compound noun, æ/ø/å diacritic & suffix analyzer