Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有想法实现 DeepL 的翻译引擎么? #52

Closed
Leask opened this issue Apr 3, 2020 · 18 comments
Closed

有想法实现 DeepL 的翻译引擎么? #52

Leask opened this issue Apr 3, 2020 · 18 comments
Labels
done The task has been completed enhancement New feature or request

Comments

@Leask
Copy link

Leask commented Apr 3, 2020

最近 DeepL 的翻译引擎比较火,效果也十分好,我尝试了一下,其实 DeepL 的 Web API 是可以直接用的:

curl 'https://www2.deepl.com/jsonrpc'
-H 'authority: www2.deepl.com'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4102.3 Safari/537.36'
-H 'content-type: text/plain'
-H 'accept: /'
-H 'origin: https://www.deepl.com'
-H 'sec-fetch-site: same-site'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-dest: empty'
-H 'referer: https://www.deepl.com/translator'
-H 'accept-language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6,ja;q=0.5'
--data-binary '{"jsonrpc":"2.0","method": "LMT_handle_jobs","params":{"jobs":[{"kind":"default","raw_en_sentence":"asdfasdf","raw_en_context_before":[],"raw_en_context_after":["asdfasdf"],"preferred_num_beams":1},{"kind":"default","raw_en_sentence":"asdfasdf","raw_en_context_before":["asdfasdf"],"raw_en_context_after":[],"preferred_num_beams":1}],"lang":{"user_preferred_langs":["DE","ZH","EN"],"source_lang_computed":"EN","target_lang":"ZH"},"priority":1,"commonJobParams":{},"timestamp":1585943671923},"id":72480012}'
--compressed

本来想实现一下做一个 pull request,不过貌似 0.2 之后不开源了,希望作者可以考虑一下。

@Leask Leask added the enhancement New feature or request label Apr 3, 2020
@octoer
Copy link

octoer commented Apr 4, 2020

同样的需求,试了下DeepL的翻译质量相当高

@RunStar99
Copy link

最近刚好在写论文,DeepL对各类学术文献的翻译都非常准确

@ripperhe
Copy link
Owner

抱歉,回复晚了。
暂时不会加 DeepL,预计下下个版本会增加自定义API的功能,到时候可以考虑自行实现

@Leask
Copy link
Author

Leask commented Apr 20, 2020 via email

@JimmyLv
Copy link

JimmyLv commented Apr 22, 2020

@wangqs97
Copy link

DeepL的API收费太贵了,调用Web API不稳定,并且会出现{"jsonrpc": "2.0","error":{"code":1042912,"message":"Too many requests."}}这样的报错,导致网页版也被禁用。

@Leask
Copy link
Author

Leask commented Apr 22, 2020 via email

@BenjaminX
Copy link

刚好看到这个 issue,也是同样需求。集成 DeepL 翻译
收费自己去买了就行

考虑基于 0.2.0 自己撸吧

@p0we7
Copy link

p0we7 commented Aug 17, 2020

@Leask @BenjaminX

楼上两位大佬撸出来 deepl 了嘛?

@wongchenv
Copy link

希望支持Deepl

@Leask
Copy link
Author

Leask commented Sep 23, 2020 via email

@geekdada
Copy link

geekdada commented Nov 19, 2020

楼上各位,插件我写好了 https://github.com/geekdada/bob-plugin-deepl-translate

@p0we7
Copy link

p0we7 commented Nov 19, 2020

@geekdada 我貌似在推上回复过你,今天说用美国信用卡付款 DeepL 的是你吧?

@geekdada
Copy link

@p0we7 对呢

@zz5678
Copy link

zz5678 commented Dec 8, 2020

楼上各位,插件我写好了 https://github.com/geekdada/bob-plugin-deepl-translate

官方收费高我就做了转发,目前测试期间 2.5 刀 6 万字符,如果有兴趣的话欢迎邮件联系我 me#royli.dev 。

A Translator,一个看起来是华人(港人)拆分分销 DeepL 翻译接口的计划,通过阿里云作中转,每月最低20港元,即刻使用。
不过目前看上去没什么商业保障,还比较个人。
https://a-translator.royli.dev

这是你做的?看起来还不错哈,方便大家,不知道是否会被 DeepL 诉讼违约代理出纠纷,且CAT应用怎么那么敏感。

@geekdada
Copy link

geekdada commented Dec 9, 2020

@zz5678 对。我通过开发者 API 来翻译的,这个 API 不能被用在 CAT 里。

@Leask
Copy link
Author

Leask commented Jan 20, 2021 via email

@ripperhe
Copy link
Owner

ripperhe commented Nov 7, 2022

各位,Bob 最新版也集成 DeepL API 了

@ripperhe ripperhe closed this as completed Nov 7, 2022
@ripperhe ripperhe added the done The task has been completed label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done The task has been completed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests