メインコンテンツへスキップ

DeepL::Write - www.deepl.com サービスを利用したテキストのチェックと編集

DeepL Write

スクレイパーの概要

DeepLサービスを利用した、毎分最大1600リクエストの高速なマルチスレッドテキストエディターです。このスクレイパーを使用すると、あらゆる量のテキストを自動モードで編集できます。スクレイパーはコンテンツの元の言語を自動的に判別します。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"}]
ヒント

タスクエディターで「Prepend text」と「Append text」のオプションを表示するには、「More options」を有効にする必要があります。

設定

パラメーターデフォルト値説明
LanguageEnglish (British)編集言語(場合によっては指定した言語に翻訳されます)
Writing style書き方のスタイル
Text styleテキストのトーン
Only corrections修正のみ