Wild · Extreme Compound Nouns, Idioms Isolated vs In Context & Split vs Unsplit · Apache-2.0
German Stress Lab: Extreme Compounds, Idioms & Long Paragraphs
Push Xenova/opus-mt-de-en (106.02 MB WASM q8, Apache-2.0) past polite
textbook sentences: watch SentencePiece slice 39-letter German compounds, compare idioms
translated in isolation vs inside a full sentence, and test whether
sentence-splitting beats a single unsplit pass on a dense German paragraph.
1. Compound-Noun & Idiom Isolation vs Context Lab
Select a famous German compound or idiom (or edit both fields below) to test isolated vs contextual translation:
Legal protection insurance companies (39 letters)
Isolated subwords–
Fertility (pieces/word)–
Isolated ms–
In-context ms–
NaN check–
SentencePiece Compound Split (Isolated Term)
Initialise Opus-MT DE→EN above to inspect live subword splitting.
Isolated Translation
Run a stress case above.
In-Context Sentence Translation
Run a stress case above.
7-case German compound noun and idiom stress matrix comparing isolated and in-context translations
Type
German Term / Idiom
SP Pieces
Isolated English
In-Context English
Press Run All 7 Stress Cases to populate the full live matrix.
2. Split vs Unsplit Long-Paragraph Comparison
Encoder-decoder translators have a 512-token position budget and are trained primarily on
sentence pairs. Run the dense 4-sentence German paragraph below BOTH as a
single unsplit call and sentence-by-sentence via splitGermanSentences()
to inspect completeness, token counts, and latency side by side.
Unsplit latency–
Split latency–
Detected sentences–
Unsplit out tokens–
Split out tokens–
Single Unsplit Call (pipe(paragraph))
Run comparison above to compare unsplit vs sentence-split decoding.
Sentence-Split Pipeline (splitGermanSentences())
Sentence-split translation will appear here.
3. Inspect German Splitter & Subword Fertility Code