use case · basics · agglutinative morphology, subword tokenization & beam search · q8 WASM · 538.56 MB

Inside MarianMT EN→TR: Agglutination, Vowel Harmony & Beam Search

Compare greedy num_beams=1 against Beam 2 and Beam 4 on English→Turkish clause reordering (SVO → SOV), then run live A/B ablations on analytic English vs Turkish agglutinative suffixes, vowel-harmonic question clitics (-mı / -mi / -mu / -mü), and sentence chunking.

1 · Opus-MT TC-Big EN→TR worker (538.56 MB q8 WASM · CC-BY-4.0)

2 · Side-by-Side Beam 1 vs Beam 2 vs Beam 4 Turkish Word-Diff

Curated English sentences (Agglutination, Diacritics & Subordinate Clause Inversion)

Prepare Opus-MT TC-Big EN→TR above to compare greedy vs beam-search Turkish decoding live.

Source SentencePiece—
Beam-2 overlap vs B1—
Beam-4 overlap vs B1—
NaN count—

Beam 1 (Greedy)

—
Karşılaştırma bekleniyor…

Beam 2 (2-way)

—
Karşılaştırma bekleniyor…

Beam 4 (4-way)

—
Karşılaştırma bekleniyor…

Shared Source SentencePiece Subwords

Run Beam comparison to inspect SentencePiece tokens.

3 · Agglutinative Morphology, Vowel Harmony & Chunking Ablation Lab

Run controlled A/B pairs through onnx-community/opus-mt-tc-big-en-tr to measure how English analytic clauses compress into agglutinative Turkish stems, how -mı/-mi/-mu/-mü clitics follow vowel harmony, and how sentence chunking affects subword fertility.

Select an ablation probe above to compare Arm A vs Arm B live.
—
Deney bekleniyor…
—
Deney bekleniyor…

Prepare Opus-MT TC-Big EN→TR above to run controlled A/B morphology ablations.

Token delta (B − A)—
Arm A compression—
Arm B compression—
TR word overlap—
Diacritics (A / B)—
NaN count—
Show the code — Turkish diacritic-aware LCS word diff comparator
Show the code — Off-main-thread Beam 1 vs Beam 2 vs Beam 4 comparison