๐Ÿ‡ต๐Ÿ‡ฑ <-> ๐Ÿ‡ฌ๐Ÿ‡ง Batch ByT5 Translator (Auto-Detect, Smart Chunking)

Translate multiple lines of text between Polish and English. Model: Gregniuki/pl-en-pl Text is automatically split into chunks of max 20 words, prioritizing breaks at . ! ? and ,

Enter text (you can paste multiple paragraphs or sentences). Click Submit to translate.

Chunking Logic:

  1. The entire input box content is split into potential 'sentence segments' using . ! ? as delimiters.
  2. Each segment is checked for word count.
  3. If a segment is <= {MAX_WORDS_PER_CHUNK} words, it's treated as a single chunk.
  4. If a segment is > {MAX_WORDS_PER_CHUNK} words, it's further split internally using commas (,) as preferred break points.
  5. If a long segment has no commas, or comma splitting isn't sufficient, it falls back to breaking purely by word count near {MAX_WORDS_PER_CHUNK} to avoid excessively long chunks.
  6. These final chunks are batched and translated.