translation · MarianMT Transformer-Big Turkish→English · q8 · WASM · 531.45 MB ONNX (538.56 MB first visit) · CC-BY-4.0
OPUS-MT TR→EN — Turkish-to-English MarianMT Big Studio
University of Helsinki's Transformer-Big 6+6 MarianMT encoder-decoder
(Helsinki-NLP/opus-mt-tc-big-tr-en,
d_model=1024, quantized to 531.45 MB q8 ONNX weights /
538.56 MB first visit incl. tokenizer.json + vocab.json in
onnx-community/opus-mt-tc-big-tr-en)
translates Turkish news, agglutinative prose, formal Siz banking notices, SOV clauses, and support tickets
entirely inside a local Web Worker — inspecting SentencePiece fertility, suffix stacking, and Turkish diacritic preservation on-device.
1 · On-device model (531.45 MB q8 ONNX · 538.56 MB first visit · encoder 135.73 MB + decoder 395.72 MB)
2 · Live Turkish → English Translator
Pick a register preset, type or paste Turkish text (Ctrl/Cmd+V anywhere on the page),
or drop/upload a .txt, .md, .srt, or .csv file.
Inference runs off the main thread in a dedicated module Web Worker via shared lib/webai.js (Transformers.js 3.7.5).
.txt, .md, .srt, or .csv file here, paste via clipboard, or choose a file:
English translation (Live MarianMT Big)
Waiting for runPrepare OPUS-MT TR→EN above to translate Turkish locally in CPU WebAssembly.
3 · See Inside: SentencePiece Fertility, Agglutinative Suffixes & Diacritics
Inspect how MarianMT's shared 57,060-piece SentencePiece vocabulary segments Turkish agglutinative
chains (-lArImIzdAn, -ebilecek, -dA/-dAn) and special
diacritics (ç ğ ı İ ö ş ü), and how each Turkish sentence aligns 1:1 with its English output.
Turkish agglutination, diacritic, and register diagnostics appear after translation.
| # | Turkish segment | English translation | Tokens (in→out) | Latency |
|---|---|---|---|---|
| Run a translation above to inspect sentence-by-sentence alignment. | ||||
Turkish Source Per-Word SentencePiece Fertility (57,060 vocab)
Run a translation to inspect Turkish word fertility.
Turkish Source SentencePiece Token Sequence
Run a translation to inspect real MarianTokenizer SentencePiece subwords.
4 · Why It Matters & At a Glance
Private local Turkish→English translation enables zero-egress legal/financial document review, offline cinema subtitling, e-commerce localization, and confidential support triage directly inside the browser without sending Turkish text to cloud servers.
| Upstream model |
Helsinki-NLP/opus-mt-tc-big-tr-en
|
|---|---|
| Browser ONNX repo |
onnx-community/opus-mt-tc-big-tr-en
(encoder_model_quantized.onnx 135.73 MB + decoder_model_merged_quantized.onnx 395.72 MB = 531.45 MB q8; 538.56 MB first visit incl. tokenizer.json 5.61 MB + vocab.json 1.50 MB + configs)
|
| Pipeline task & runtime | translation · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm |
| Architecture | MarianMTModel Transformer-Big (6 encoder + 6 decoder layers, d_model=1024, 16 attention heads, ReLU FFN=4096, max_length=512, vocab_size=57,060) |
| Special tokens | pad=<pad> (57059), eos=</s> (43741), unk=<unk> · decoder_start_token_id=57059 · config default num_beams=4 |
| Upstream benchmarks | Tatoeba TR→EN: 57.6 BLEU · FLORES-101 devtest: 37.6 BLEU · newsdev2016: 32.1 BLEU · newstest2018: 30.7 BLEU |
| License | CC-BY-4.0 (University of Helsinki) |
Show the code — Off-thread MarianMT Transformer-Big translation & TextStreamer
Show the code — Turkish sentence splitter preserving abbreviations & ordinals
Show the code — Turkish agglutinative suffix, diacritic & Siz/sen analyzer
Live Beam 1 vs 2 vs 4 + length_penalty benchmark, agglutinative suffix & vowel-harmony explorer, and ASCII-folding pairs.
Practical · Multi-File .SRT, .CSV, .JSON & GlossaryBatch-translate Turkish subtitles, ragged CSVs, i18n JSON, and docs with TR→EN glossary checks and safe exports.
Wild · Idioms, ASCII Folding, SOV & 512-Token Lab6 live stress probes (ASCII-folded igdir/cicek, idioms, SOV, 512-token truncation, ₺ parity) + 8-entry idiom/trap grader.
Multi-Model · TR→EN → Multilingual-E5 Semantic FidelityChain OPUS-MT TR→EN (538.56 MB) into Multilingual-E5-Small (135.39 MB) to verify cross-lingual cosine margin vs distractors.