use case · wild · chengyu idiom & sentence-boundary stress lab · q8 WASM · 113.11 MB · CC-BY-4.0

Bilingual Idiom (Chengyu 成语) & Sentence-Boundary Stress Lab

Probe where compact neural machine translation shines — and where it breaks. Compare live translations of isolated Chinese Chengyu idioms vs full contextual sentences, test Simplified vs Traditional equivalence, and pit Sentence-Split decoding against Unsplit Single-Pass decoding on dense 380-character paragraphs.

1 · Opus-MT ZH→EN worker (113.11 MB q8 WASM)

2 · Lab A — Chengyu Idiom (Isolated vs Context) & Script Robustness

Select an idiom or Simplified/Traditional test pair

Human reference note (not model output): —

Prepare Opus-MT ZH→EN above to compare isolated idioms vs contextual usage live on-device.

Isolated Idiom / Input A

—

Tokens: — · Latency: —

Contextual Sentence / Input B

—

Tokens: — · Latency: —

3 · Lab B — Long-Paragraph Sentence-Split vs Unsplit Truncation Lab

Feed an entire 7–8 sentence Chinese paragraph into MarianMT in a single unsplit call versus splitting on Chinese sentence boundaries (。!?;). Highlighted words mark clauses dropped or altered when decoded unsplit.

Click "Run Split vs Unsplit Stress Test" once the model is ready.

Sentences detected—
Split output words—
Unsplit output words—
Coverage ratio—
Word overlap—
NaN count—

Sentence-Split Sequential Decoding

—

Latency: — · Tokens: —

Unsplit Single-Pass Decoding

—

Latency: — · Tokens: —

Model: Helsinki-NLP/opus-mt-zh-en → Xenova/opus-mt-zh-en (113.11 MB q8 ONNX, CC-BY-4.0).