use case · basics · inside 6+6 MarianMT KO→EN · q8 WASM · 113.11 MB · Apache-2.0

Inside 6+6 MarianMT KO→EN: Beam 1/2/4, Speech-Level & Subject-Drop Lab

Examine how the 6+6 MarianMT encoder-decoder translates Korean locally: benchmark Beam 1 (Greedy) vs Beam 2 vs Beam 4 side-by-side with live word diffs and latency telemetry, then probe Korean Speech Levels (합쇼체 Formal vs 해요체 Polite vs 해체 Banmal) and Subject-Drop in an independent Contrast Lab.

1 · Opus-MT KO→EN worker (113.11 MB q8 WASM · auto-inits from cache)

2 · Live Side-by-Side Beam 1 vs Beam 2 vs Beam 4 Benchmark

Each beam width runs sequentially in the same FIFO WASM worker on your Korean text. Highlighted English words in Beam 2 and Beam 4 mark phrasing differences relative to Beam 1 (Greedy).

Select a Korean test sentence

Prepare Opus-MT KO→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 Hangul Subwords (MarianTokenizer)

Run Beam comparison to inspect SentencePiece Hangul subwords.

3 · Live Korean Speech-Level (합쇼체 / 해요체 / 해체) & Subject-Drop Contrast Lab

Korean encodes social hierarchy in sentence-final verb endings and routinely omits grammatical subjects. Compare all three speech registers live, or contrast zero-subject vs explicit-pronoun Korean side-by-side (independent from the Beam benchmark above).

Speech-Level Triples (합쇼체 Formal · 해요체 Polite · 해체 Banmal)

Speech-level note: —

Select a speech-level triple and click Run 3-Way Speech-Level Contrast once the model is ready.

합쇼체 · Formal (-습니다)

—

Tokens: — · Latency: —

해요체 · Polite (-어요/게요)

—

Tokens: — · Latency: —

해체 · Banmal (-어/게)

—

Tokens: — · Latency: —


Subject-Drop (Pro-Drop) vs Explicit Pronoun Pairs

Subject-drop note: —

Click Run Live Subject-Drop Contrast once the model is ready.

Natural Pro-Drop (omitted subject)

—

Tokens: — · Latency: —

Explicit Pronoun Baseline

—

Tokens: — · Latency: —

Show the code — Off-thread Beam 1 vs Beam 2 vs Beam 4 comparison

Model: Helsinki-NLP/opus-mt-ko-en → Xenova/opus-mt-ko-en (113.11 MB q8 ONNX, Apache-2.0).