Fast and secure translation on your local machine with a GUI
github.com
github.com
Tried to translate on the official website https://private.mt/. The phrase "PRIVATE MACHINE TRANSLATION, RUNNING LOCALLY ON YOUR DEVICE" translates to Russian as "ПРАКТРОНАТРАТИВНАЯ РАННЕЕ ПЕРЕДАЖА, ПОВЕСТКИ ДЛЯ ВАШЕГО УСЕДАНИЯ", which is an uncomprehencive combination of characters (although "вашего" is a correct word).
Translating to Ukrainian also produced rubbish: "ПРИВАТНА МАЧИННА ПЕРЕКЛАД, РУНУВАННЯ ЛОКАЛІЇ НА СВОЇХ ДЕВІСНИКІВ".
To German it translates as "PRIVATE MACHINE ÜBERSETZUNG, RUNNING LOCALLY AUF IHREM DEVICE", comparing to Google translate "PRIVATE MASCHINENÜBERSETZUNG, LÄUFT LOKAL AUF IHREM GERÄT".
https://translatelocally.com/models.json
…Oddly, I don't actually even have Russian available at all in my desktop install of this. And there is Ukrainian, but only Ukrainian-to-English, so there's also no way that it could even be using another language as a pivot as there aren't any models that output Ukrainian. I guess the website might be using old, known bad models or something?
With "English-German tiny", I get "Private maschinelle Übersetzung, läuft lokal auf Ihrem Gerät", and with "English-German base", I get "Private maschinelle Übersetzung, die lokal auf Ihrem Gerät läuft", though I had to type it in lowercase.
I'd trust the translation quality enough to read foreign articles in it. Not enough to translate anything meant for anyone else to read…
ATTENTION
This room is fullfilled mit special electronische equippment.
Fingergrabbing and pressing the cnoeppkes from the computers is
allowed for die experts only! So all the "lefthanders" stay away
and do not disturben the brainstorming von here working
intelligencies. Otherwise you will be out thrown and kicked
anderswhere! Also: please keep still and only watchen astaunished
the blinkenlights.https://blog.mozilla.org/en/mozilla/local-translation-add-on...
https://hacks.mozilla.org/2022/06/training-efficient-neural-...
https://github.com/mozilla/firefox-translations
https://firefox-source-docs.mozilla.org/toolkit/components/t...
Extra webpage with screenshot and links, impossible to search for normally:
https://translatelocally.com/downloads/
Does one thing and does it well.
Oh— For downloading models, it's much easier to pipe/`xargs` `translateLocally --available-models` into `translateLocally -d` than go through the GUI.
---
Other self-hostable translation tools:
https://www.apertium.org/index.eng.html
- Traditional rule-based translation. Seems to work pretty well, but no good desktop frontend.
https://www.argosopentech.com/
- Works, but crashy desktop app.
- API wrapping Argos Translate.
https://lingva.thedaviddelta.com/
- Google Translate scraper/privacy frontend.
- Proprietary, subscription trialware.
Speech-to-speech translation (S2ST) Speech-to-text translation (S2TT) Text-to-speech translation (T2ST) Text-to-text translation (T2TT) Automatic speech recognition (ASR).
across
101 languages for speech input. 96 Languages for text input/output. 35 languages for speech output.
I tried it for low resource languages like Thai to German for text and audio, and it works quite well.
Unfortunately, interpreting "CC-BY-NC" as a software license, I think you'd be pirating if you used the linked models for anything you might sell.
(Bergamot is BY-SA, but I think the virality would only apply to derivative models and not model outputs, whereas Facebook's NonCommercial clause might apply to usage of the original model itself, as it usually does in software licenses.)
I hope they'll fund more things that aim to break cloud/vendor lock-in.
any models for that available i wonder?
Pasting a function in and asking for it in a different programming language will get an implementation in the target language. Using ollama run llama2:13b on my mac will allow converting in this fashion.
It might not be the best code, but this is true of machine translations as well.
> Using ollama run llama2:13b on my mac will allow converting in this fashion
okay, i'll have t try this out > It might not be the best code, but this is true of machine translations as well.
true, one thing im hoping for is some local version of copilot/chatgpt for code where its trained on local libraries and the local project and such (and can translate them in some scenarios)Technically what you're describing is done by a compiler/decompiler/transpiler, operating on the AST.
EDIT: this is a genuine question as I don't have a clue. Rather than downvoting without comment, maybe downvote and let me know why my question is dumb?
https://news.ycombinator.com/item?id=40027675
As for quality, I think its models are, IDK, maybe around the level that Youtube automatic captions were two or three years ago? So well over 90% accurate, and servicable for getting something to search for or clean up, but expect it to get a word wrong every now and then.
FWIW, I like Helinski opus on Huggingface, worth checking out if you need machine translation and can deal with sub Google Translate quality.