DeepL::Write — перевірка та редагування текстів через сервіс www.deepl.com

Огляд парсера
Швидкий багатопотоковий редактор тексту через сервіс Deepl — до 1600 запитів на хвилину. Цей парсер дає змогу автоматично редагувати тексти будь-якого обсягу. Парсер автоматично визначає мову оригіналу. Deepl write здатен обробляти величезні обсяги тексту, не витрачаючи багато ресурсів.

Зібрані дані
- Відредагований текст (
$corrected) - Мова оригіналу (
$detected) - Варіанти тексту (
$variants): той самий текст в іншому стилі
Можливості
- Вибір мови редагування
- Автоматичне визначення мови
Обмеження
- Підтримуються мови: німецька, англійська (британська й американська), французька, іспанська, італійська, португальська (європейська й бразильська), японська, китайська (спрощена), корейська, а також автоматичне визначення мови (Auto). DeepL Write не підтримує російську мову.
- Якщо DeepL Write не підтримує вибрану мову або стиль, парсер одразу повідомляє про це в журналі й не повторює запит.
- Для японської, китайської та корейської мов не можна вибрати стиль письма.
- За один запит застосовується лише один тон (Text style): якщо вибрано кілька, використовується перший.
Варіанти використання
- Редагування тексту
- Унікалізація тексту
Запити
Як запити можна вказувати будь-який текст для редагування, наприклад:
Animals are foscinating creatures. They come in all shapes and sizes, from tiny mouse to ginormous elephent. The lion is known as the king of the jungel, with its majestic mane and ferociuos roar. It hunts its pray with stratagy and precission.
Варіанти виведення результатів
A-Parser підтримує гнучке форматування результатів завдяки вбудованому шаблонізатору Template Toolkit, що дає змогу виводити результати в довільному форматі, а також у структурованому, наприклад CSV або JSON
Виведення за замовчуванням
Формат результату:
$corrected\n
Приклад результату:
Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with his majestic mane and ferocious roar. Er jagt seine Beute mit Strategie und Präzision.
Виведення мови оригіналу й відредагованого тексту в таблицю CSV
Формат результату:
[% tools.CSVline(detected, corrected) %]
Приклад результату:
"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with his majestic mane and ferocious roar. Er jagt seine Beute mit Strategie und Präzision."
Збереження у форматі SQL
Формат результату:
[% "INSERT INTO text VALUES('" _ query _ "', '"; detected _ "', '"; corrected _ "')\n"; %]
Приклад результату:
INSERT INTO text VALUES('Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.', 'EN', 'Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.')
Вивантаження результатів у JSON
Загальний формат результату:
[% IF notFirst;
",\n";
ELSE;
notFirst = 1;
END;
obj = {};
obj.query = query;
obj.detected = p1.detected;
obj.corrected = p1.corrected;
obj.json %]
Початковий текст:
[
Кінцевий текст:
]
Приклад результату:
[{"corrected":"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.","query":"Animals are fascinating creatures. They come in all shapes and sizes, from the tiny mouse to the gigantic elephant. The lion is known as the king of the jungle, with its majestic mane and ferocious roar. It hunts its prey with strategy and precision.","detected":"EN"}]
Щоб параметри «Prepend text» і «Append text» були доступні в Редакторі завдань, потрібно активувати «More options».
Можливі налаштування
| Параметр | Значення за замовчуванням | Опис |
|---|---|---|
| Language | English (British) | Мова редагування (у деяких випадках перекладає текст зазначеною мовою): German, English (British), English (American), Auto, French, Spanish, Italian, Portuguese (European), Portuguese (Brazilian), Japanese, Chinese (Simplified), Korean |
| Writing style | Стиль написання | |
| Text style | Тон тексту (за один запит застосовується лише перший вибраний) | |
| Only corrections | ☐ | Лише виправлення |