Перейти к основному содержимому

DeepL::Write - проверка и редактирование текстов через сервис www.deepl.com

DeepL Write

Обзор парсера

Быстрый, до 1600 запросов в минуту, многопоточный редактор текста через сервис Deepl. Данный парсер позволяет редактировать любые объемы текстов в автоматическом режиме. Парсер автоматически определяет исходный язык контента. Deepl write способен обрабатывать колоссальные объемы текста, при этом не потребляя много ресурсов.

Обзор парсера

Собираемые данные

  • Редактированный текст
  • Язык исходного текста

Возможности

  • Выбор языка редактирования
  • Автоматическое определение языка

Варианты использования

  • Редактирование текста
  • Уникализация текста

Запросы

В качестве запросов необходимо указывать любой текст для редактирования, например:

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"}]
подсказка

Чтобы опции "Начальный текст" и "Конечный текст" были доступны в Редакторе заданий, нужно активировать "Больше опций".

Возможные настройки

ПараметрЗначение по умолчаниюОписание
LanguageEnglish (British)Язык редактирования (в некоторых случаях переводит текст на указанный язык)
StyleСтиль редактирования (имеет приоритет над опцией Only corrections
Only correctionsТолько исправление