Re:Official Firefox add-on bringing offline translation supp...
by AshamedCaptain on Monday August 08, 2022 @08:07AM
(#32384530)
No way to use the offline translation engine standalone with some custom text, or even invoke it from a command line ?
[ Parent
| on HN ]
Re:Official Firefox add-on bringing offline translation supp...
by cyber_kinetist on Monday August 08, 2022 @08:21AM
(#32384615)
Maybe you can develop it, if you want. The models and the source code for running it are all there, someone just have to wrap it in a standalone binary instead of a WebExtension.
- https://github.com/mozilla/firefox-translations
- https://github.com/mozilla/firefox-translations-models
- https://github.com/mozilla/bergamot-translator
Note that most of the heavy NLP code used (MarianMMT, fasttext) were originally written as C++ libraries but were compiled to WebAssembly to make a WebExtension out of it. So if you want to make a command line / GUI desktop app there are two choices: use C++ directly if you want to make an app with minimal dependencies, or use JS/WebAssembly to make a NodeJS / Electron based app (which might be heavier but more accessible for JS devleopers.)
Re:Official Firefox add-on bringing offline translation supp...
by baobob on Monday August 08, 2022 @08:11AM
(#32384561)
There is, it's not even hard to find out how.
Re:Official Firefox add-on bringing offline translation supp...
by pabs3 on Monday August 08, 2022 @08:12AM
(#32384567)
This is the underlying translation engine:
https://github.com/marian-nmt/marian-dev
And the browser fork of it:
Re:Official Firefox add-on bringing offline translation supp...
by pluc on Monday August 08, 2022 @08:39AM
(#32384741)
I thought it was Bergamot? https://browser.mt/