Ir al contenido principal

DeepL::Write - comprobación y edición de textos a través del servicio www.deepl.com

DeepL Write

Descripción del extractor​

Editor de texto multihilo, rápido (hasta 1600 consultas por minuto), a través del servicio DeepL. Este extractor permite editar cualquier volumen de texto en modo automático. El extractor detecta automáticamente el idioma original del contenido. DeepL Write es capaz de procesar volúmenes colosales de texto sin consumir muchos recursos.

Descripción del extractor

Datos recopilados​

  • Texto editado ($corrected)
  • Idioma del texto original ($detected)
  • Variantes del texto ($variants): el mismo texto en otro estilo

Capacidades​

  • Selección del idioma de edición
  • Detección automática del idioma

Limitaciones​

  • Idiomas compatibles: alemán, inglés (británico y americano), francés, español, italiano, portugués (europeo y brasileño), japonés, chino (simplificado), coreano, así como detección automática de idioma (Auto). DeepL Write no es compatible con el idioma ruso.
  • Si DeepL Write no admite el idioma o estilo seleccionado, el extractor lo registra inmediatamente en el registro y no repite la consulta.
  • No se puede elegir el estilo de escritura para los idiomas japonés, chino y coreano.
  • Solo se aplica un tono (Text style) por consulta: si se seleccionan varios, se utiliza el primero.

Casos de uso​

  • Edición de texto
  • Unicidad de texto

Consultas​

Como consultas, debe especificar cualquier texto para editar, por ejemplo:

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.

Ejemplos de salida de resultados​

A-Parser admite un formateo flexible de resultados gracias al motor de plantillas integrado Template Toolkit, lo que le permite presentar los resultados en cualquier forma, así como en formatos estructurados como CSV o JSON.

Salida por defecto​

Formato de resultado:

$corrected\n

Ejemplo de resultado:

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.

Salida de idioma detectado y texto editado en una tabla CSV​

Formato de resultado:

[% tools.CSVline(detected, corrected) %]

Ejemplo de resultado:

"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."

Guardado en formato SQL​

Formato de resultado:

[%  "INSERT INTO text VALUES('" _ query _ "', '";   detected _ "', '";  corrected _ "')\n";  %]

Ejemplo de resultado:

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.')

Volcado de resultados en JSON​

Formato general del resultado:

[% IF notFirst;
",\n";
ELSE;
notFirst = 1;
END;

obj = {};
obj.query = query;
obj.detected = p1.detected;
obj.corrected = p1.corrected;

obj.json %]

Texto inicial:

[

Texto final:

]

Ejemplo de resultado:

[{"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"}]
sugerencia

Para que las opciones "Prepend text" y "Append text" estén disponibles en el Editor de tareas, debe activar "More options".

Configuraciones posibles​

ParámetroValor por defectoDescripción
LanguageEnglish (British)Idioma de edición (en algunos casos traduce el texto al idioma especificado): German, English (British), English (American), Auto, French, Spanish, Italian, Portuguese (European), Portuguese (Brazilian), Japanese, Chinese (Simplified), Korean
Writing styleEstilo de escritura
Text styleTono del texto (solo se aplica el primero seleccionado por consulta)
Only corrections☐Solo corrección