DeepL::Write - 通过 www.deepl.com 服务进行文本检查与编辑

爬虫工具概览
这是一款快速、多线程的文本编辑工具,通过 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”。
可能的设置
| 参数 | 默认值 | 描述 |
|---|---|---|
| Language | English (British) | 编辑语言(在某些情况下会将文本翻译为指定语言) |
| Writing style | 写作风格 | |
| Text style | 文本风格 | |
| Only corrections | ☐ | 仅纠错 |