Przejdź do treści głównej

DeepL::Write - sprawdzanie i edycja tekstów za pomocą serwisu www.deepl.com

DeepL Write

Przegląd scrapera

Szybki, do 1600 zapytań na minutę, wielowątkowy edytor tekstu poprzez serwis Deepl. Ten scraper pozwala edytować dowolne ilości tekstu w trybie automatycznym. Scraper automatycznie wykrywa język źródłowy treści. Deepl write jest w stanie przetwarzać kolosalne ilości tekstu, nie zużywając przy tym wielu zasobów.

Przegląd scrapera

Zbierane dane

  • Edytowany tekst
  • Język tekstu źródłowego

Możliwości

  • Wybór języka edycji
  • Automatyczne wykrywanie języka

Warianty wykorzystania

  • Edycja tekstu
  • Usuwanie duplikatów tekstu

Zapytania

Jako zapytania należy podać dowolny tekst do edycji, na przykład:

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.

Warianty wyprowadzania wyników

A-Parser obsługuje elastyczne formatowanie wyników dzięki wbudowanemu silnikowi szablonów Template Toolkit, co pozwala mu wyprowadzać wyniki w dowolnej formie, a także w strukturyzowanej, np. CSV lub JSON

Wynik domyślny

Format wyniku:

$corrected\n

Przykład wyniku:

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.

Wyprowadzanie określonego języka i edytowanego tekstu do tabeli CSV

Format wyniku:

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

Przykład wyniku:

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

Zapisywanie w formacie SQL

Format wyniku:

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

Przykład wyniku:

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

Zrzut wyników do JSON

Ogólny format wyniku:

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

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

obj.json %]

Tekst początkowy:

[

Tekst końcowy:

]

Przykład wyniku:

[{"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"}]
wskazówka

Aby opcje "Prepend text" i "Append text" były dostępne w Edytorze zadań, należy aktywować "More options".

Możliwe ustawienia

ParametrWartość domyślnaOpis
LanguageEnglish (British)Język edycji (w niektórych przypadkach tłumaczy tekst na wskazany język)
Writing styleStyl pisania
Text styleStyl tekstu
Only correctionsTylko poprawianie