Xenova/opus-mt-es-en
Helsinki-NLP/opus-mt-es-en
translation
1. Live Spanish → English Neural Translator
encoder_model_quantized.onnx
(52.90 MB) + decoder_model_merged_quantized.onnx (60.21 MB) via shared
Transformers.js 3.7.5 inside a dedicated Web Worker. No Spanish text or uploaded file
leaves your browser.
Pick a curated Spanish register preset, type your own Spanish text, or upload a local
.txt / .srt / .md document:
Spanish Input
English Translation (Live MarianMT)
2. Sentence-by-Sentence Alignment (¿ ¡ & Abbreviation Aware)
When Sentence alignment is enabled, Spanish paragraphs are split by
splitSpanishSentences(): a ? or ! only closes a
sentence once its inverted ¿ / ¡ opener is matched, and
abbreviations like Sr., Sra., Dr., p. ej.
and EE.UU. never split. Each sentence is translated separately with its own
token counts, fertility, and measured latency.
| # | Spanish Source Sentence | English Translation | Tokens (In → Out) | Fertility | Latency |
|---|---|---|---|---|---|
| Run a translation above to inspect sentence alignment. | |||||
3. Word-Level Subword Fertility & SentencePiece Pills
OPUS-MT ES→EN uses a shared 65,001-piece SentencePiece model. Each Spanish word below shows
its live split and piece count — clitic-laden verbs (córtalas,
añádelos) and rare words cost more pieces than common function words.
This is the tokenizer's real segmentation of your input, not an attention alignment.
Fertility ratio (pieces per Spanish word) will appear after translation.
Raw SentencePiece pieces
4. Inside MarianMT ES→EN & Source Code
Trained by the Language Technology Research Group at the University of Helsinki
(Helsinki-NLP/opus-mt-es-en, Apache-2.0) on OPUS Spanish–English parallel
corpora and converted to quantized ONNX by Xenova (Xenova/opus-mt-es-en).