use case · basics · inside MarianMT decoding & Arabic tashkeel · q8 WASM · 110.88 MB · Apache-2.0
Inside MarianMT AR→EN: Beam Search & Tashkeel Diacritic Ablation
Explore two fundamental mechanics of Opus-MT AR→EN:
(1) how expanding num_beams (1 vs 2 vs 4) reshapes VSO-to-SVO English phrasing
at the cost of latency, and (2) how Arabic vocalization diacritics (tashkeel / harakat)
inflate SentencePiece subwords and shift decoded meaning in real time.
1 · Opus-MT AR→EN worker (110.88 MB q8 WASM · Apache-2.0)
2 · Side-by-Side Beam 1 vs Beam 2 vs Beam 4 Word-Diff
Prepare Opus-MT AR→EN above to compare greedy vs beam-search decoding live.
Beam 1 (Greedy)
—Beam 2 (2-way)
—Beam 4 (4-way)
—Shared Source SentencePiece Subwords
Run Beam comparison to inspect SentencePiece tokens.
3 · Live Tashkeel Diacritic Ablation (Vocalized vs Stripped)
Short-vowel harakat (َ ِ ُ ّ ْ) disambiguate Arabic case endings and passive voice
(كَتَبَ vs كُتِبَ), yet SentencePiece was trained primarily on unvocalized text.
Run both forms side-by-side to observe real subword inflation and translation shift.
Ready to run vocalized vs unvocalized Tashkeel ablation once the model loads.