use case · basics · inside MarianMT Big TR→EN (d_model 1024) · q8 WASM · 538.56 MB first visit · CC-BY-4.0

Inside MarianMT Big TR→EN: Beam 1/2/4, Agglutinative Suffixes & Diacritics

Compare Beam 1 (Greedy) vs Beam 2 vs Beam 4 speed-vs-fluency with live length_penalty tuning on the 6+6 d_model=1024 encoder-decoder, inspect how 57,060-piece SentencePiece splits Turkish agglutinative chains (-lAr, -dA, -dAn, -lArImIz) and diacritics (ç ğ ı İ ö ş ü vs ASCII-folded igdir/cicek), and contrast live Turkish→English morphology pairs.

1 · OPUS-MT TR→EN worker (531.45 MB q8 ONNX · 538.56 MB first visit · auto-inits from cache)

2 · Live Beam 1 vs Beam 2 vs Beam 4 & Length Penalty Benchmark

Each beam width runs sequentially in the same WASM worker on your Turkish sentence using the chosen length_penalty (0.5 favors compact outputs; 2.0 favors fuller English clauses). Highlighted English tokens in Beam 2 and Beam 4 mark word-choice or SOV reordering changes relative to Beam 1 (Greedy).

Select a Turkish benchmark sentence

Prepare OPUS-MT TR→EN above to run live Beam 1 vs Beam 2 vs Beam 4 decoding.

Beam 1 (Greedy baseline)

—

Latency: — · Tokens: —

Beam 2 (diff vs Beam 1)

—

Latency: — · Overlap: —

Beam 4 (diff vs Beam 1)

—

Latency: — · Overlap: —

Measured Beam Search Latency & Throughput (CPU WASM)

Real SentencePiece Source Subwords (MarianTokenizer)

Run Beam comparison to inspect SentencePiece source subwords.

3 · Live Turkish Agglutinative Suffixes & Diacritic Explorer

Inspect how the 57,060-piece SentencePiece vocabulary tokenizes Turkish suffix chains (evlerimizden, odalarımızda, görüştürebileceklerimizden) and contrasts proper Turkish diacritics (çiçekçiler, Iğdır'da) against ASCII-folded spellings (cicekciler, Igdir'da).

Prepare OPUS-MT TR→EN above to tokenize and translate Turkish suffixes & diacritics.

Turkish word Kind · Morphology gloss Live SentencePiece pieces Live English ms
Click Tokenize & Translate Probes once the model is ready.

4 · Live Vowel Harmony, Agglutination, Diacritic & Siz/sen Pairs

Contrast paired Turkish inputs to watch MarianMT unpack suffix chains into English prepositional phrases, handle front vs back vowel harmony, recover ASCII-folded diacritics, and adapt formal Siz vs casual sen.

Turkish Morphology Minimal Pairs

Linguistic note: —

Select a minimal pair and click Run Morphology Pair Probe once the model is ready.

Variant A

—

Tokens: — · Latency: —

Variant B

—

Tokens: — · Latency: —

Show the code — Off-thread Beam 1 vs Beam 2 vs Beam 4 & length_penalty comparison
Show the code — Deterministic LCS word-diff comparator

Model: Helsinki-NLP/opus-mt-tc-big-tr-en → onnx-community/opus-mt-tc-big-tr-en (531.45 MB q8 ONNX / 538.56 MB first visit, CC-BY-4.0).