use case · wild · idioms, false friends, IT/ES/EN code-switch, negation, Euro numbers & >512 truncation · q8 WASM · 112.69 MB

Idioms, False Friends, Code-Switching & >512-Token Truncation Lab

Push Opus-MT IT→ES into real Romance edge cases: Italian idioms, a dense false-friends gauntlet, regional & IT/ES/EN code-switching, nested negations & subjunctive, European numeric/currency formats, and >512-token input + tight output truncation. Every probe runs live on-device.

1 · Opus-MT IT→ES worker (112.69 MB q8 WASM · Apache-2.0)

2 · Controlled Edge-Case Stress Probe

Select a stress scenario (run individually or evaluate all 6 in the matrix below)
Select a stress probe above to inspect SentencePiece token count, orthography transfer, truncation status, and Spanish output.
—

Measured Spanish Output

—
Esperando ejecución…

Prepare Opus-MT IT→ES above to run live idiom, false-friend, code-switch, negation, Euro numeric, and >512-token truncation probes.

Src → Tgt tokens—
Orthography check—
Truncation status—
Latency—
NaN count—

Real SentencePiece Source Subwords (first 96 tokens)

Run a stress probe to inspect SentencePiece tokens.

3 · Empirical 6-Probe Stress Matrix

Click Run All 6 Stress Probes above to evaluate every edge case sequentially off the main thread using each scenario's target budget (note Probe 6 exceeds MarianMT's 512-token encoder window AND caps max_new_tokens=48).

Live empirical stress matrix across idioms, false friends, code-switching, negation, numeric formats, and truncation
Stress Scenario Spanish Output Tokens (in→out) Ortho · Trunc Latency
Click "Run All 6 Stress Probes" above to populate the empirical matrix.

4 · Inspect Orthography & >512-Token Inspection Code

Show the code — Italian grave/elision vs Spanish acute/ñ/¿¡ & grave-leak analyzer
Show the code — Full-length SentencePiece inspection (>512 truncation & NaN detection)