translation · Direct Italian→Spanish Zero-Pivot MarianMT · q8 · WASM · 112.69 MB · Apache-2.0
Opus-MT Italian → Spanish
University of Helsinki's OPUS-MT IT→ES
(Helsinki-NLP/opus-mt-it-es,
quantized to 112.69 MB first-visit q8 ONNX in
Xenova/opus-mt-it-es)
is a direct zero-pivot 6+6 MarianMT encoder-decoder translating Italian prose straight into
Spanish (preserving grammatical gender, formal Lei → usted register, and Romance syntax without
pivoting through English) — running 100% locally in CPU WebAssembly.
1 · On-device model (112.69 MB q8 WASM · encoder 49.84 MB + decoder 57.13 MB + tokenizer 5.71 MB)
2 · Live Direct Italian → Spanish Zero-Pivot Neural Translator
Select an Italian preset, type or paste Italian prose with accents (à, è, é, ì, ò, ù), or
drop/upload a .txt, .md, .srt, or .csv file anywhere below.
.txt, .md, .srt, or .csv file here,
paste via Ctrl/Cmd+V, or choose a local file:
Spanish Translation (Español)
Waiting for runPrepare Opus-MT IT→ES above to translate Italian text directly into Spanish in CPU WebAssembly.
3 · See Inside: Sentence Alignment, Romance Diacritics & MarianTokenizer Subwords
Inspect how Italian grave accents (à, è, ì, ò, ù) and elisions (l', dell')
transform into Spanish acute accents (á, é, í, ó, ú, ü), ñ, and paired
¿ / ¡ punctuation across the shared 59,031-token SentencePiece vocabulary.
| # | Italian segment | Spanish translation | Tokens (in→out) | Latency |
|---|---|---|---|---|
| Run a translation above to inspect sentence-by-sentence alignment. | ||||
Real SentencePiece Source Subwords (MarianTokenizer · 59,031 vocab · ▁ boundaries)
Run a translation to inspect real MarianTokenizer SentencePiece subwords and fertility.
Waiting for first on-device run.
4 · At a Glance, Why Zero-Pivot Matters, Code & Use-Case Ladder
| Upstream model |
Helsinki-NLP/opus-mt-it-es
(Tatoeba it.es: BLEU 61.2 · chr-F 0.761)
|
|---|---|
| Browser ONNX repo |
Xenova/opus-mt-it-es
(encoder_model_quantized.onnx 49.84 MB + decoder_model_merged_quantized.onnx 57.13 MB +
tokenizer.json 5.71 MB + configs = 112.69 MB q8)
|
| Pipeline task & runtime | translation · @huggingface/transformers@3.7.5 (shared pin in lib/webai.js) · CPU WASM |
| Architecture | MarianMTModel (6 encoder + 6 decoder layers, d_model=512, 8 heads, ffn=2048, swish, max_length=512, vocab_size=59031, shared IT/ES embeddings) |
| Special tokens | pad=<pad> (59030, also decoder_start_token_id), eos=</s> (0), unk=<unk> (1); no >>lang<< prefix required |
| License | Apache-2.0 (University of Helsinki Language Technology Research Group) |
opus-mt-it-es shares one 59,031-token Romance
SentencePiece vocabulary and achieves 61.2 BLEU on Tatoeba in a single 112.69 MB offline WASM worker.
Show the code — Off-main-thread MarianMT IT→ES decoding, streaming & truncation telemetry
Show the code — Abbreviation-safe Italian sentence segmentation (Dott., Prof., Sig., ecc.)
Explore the 5-Route Opus-MT IT→ES Use-Case Ladder
Compare Beam 1 vs 2 vs 4 and ablate Romance false friends, formal Lei register, accents & ¿/¡ punctuation.
Practical · CSV, .SRT & i18n Batch LocalizerBatch-localize Italian CSV tables, .srt subtitles, and it.json bundles to Spanish with Cancel & safe exports.
Wild · Idioms, Code-Switch & >512 TruncationStress-test idioms, dense false friends, IT/ES/EN code-switching, negation, Euro numbers & >512-token overflow.
Multi-model · IT→ES × 201-Lang Shift AuditorChain Opus-MT IT→ES (112.69 MB) with mBERT FLORES-200 (25.84 MB) to prove ita_Latn→spa_Latn shift & catch leaks.