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

[feature] Use different translation engines #13

Open
gbdomubpkm opened this issue Jul 29, 2023 · 11 comments
Open

[feature] Use different translation engines #13

gbdomubpkm opened this issue Jul 29, 2023 · 11 comments
Labels
enhancement New feature or request

Comments

@gbdomubpkm
Copy link

gbdomubpkm commented Jul 29, 2023

Currently Lingva is down and we can't use your app.

It would be very great if your app could evolve to a translator which can use many translation engines. For example, I like very much using https://f-droid.org/en/packages/com.bnyro.translate/ with an another android AOSP smartphone.

@walking-octopus
Copy link
Owner

Oh, that's very unfortunate.

Luckily, I did add support for switching to a different instance, so you might have some luck with switching to one of these:

As for other engines, there are a few choices I might implement some day in this app's rewrite:

  • Built-in Google Translate scraper: Kind-of removes the anonymizing factor of a single large instance servicing multiple users, may be broken by a random redesign, but would be self-sufficient.
  • Local ML: Facebook did release NLLB-200, a local translation model. It's not perfect, but good enough. So user's phone is powerful enough and inference can be performed without large dependencies like PyTorch, with something like GGML, this would be a possibility.
  • Scraping other engines: DeepL is very strict about its anti-abuse measures, so even debugging that would get you a year-long IP ban. Microsoft may be more promising...

@gbdomubpkm
Copy link
Author

gbdomubpkm commented Jul 29, 2023

Thank you ! For info, the android app 'Translate you' use:

image20230729_201509316

  • LibreTranslate
  • Lingva
  • DeepL
  • MyMemory
  • Reverso
  • SimplyTranslate
  • MinT
  • Globse

@walking-octopus walking-octopus changed the title [fearture request] use different translation engines [fearture] Use different translation engines Jul 29, 2023
@walking-octopus walking-octopus added the enhancement New feature or request label Jul 29, 2023
@gbdomubpkm
Copy link
Author

Luckily, I did add support for switching to a different instance, so you might have some luck with switching to one of these:

https://translate.plausibility.cloud
https://lingva.lunar.icu
https://translate.dr460nf1r3.org
https://lingva.garudalinux.org

The four work. Did you do a new xenial .click with that ? Currently i did a webber xenial shortcut with the first instance 🙂 Thank you

@walking-octopus walking-octopus changed the title [fearture] Use different translation engines [feature] Use different translation engines Jul 29, 2023
@walking-octopus
Copy link
Owner

In the settings, I recall there was a field to change the instance. Just replace the host and it should work just fine.

@gbdomubpkm
Copy link
Author

gbdomubpkm commented Jul 29, 2023

I tested. I changed with the two first instance and it doesn't work for me (Volla), even after deleted cache and data and after shut down the phone and switch on again. As if no internet in the app.
Does it work for you ?

Edit : i tested in a BQ E5 HD . It doesn't work too.

log : https://dpaste.com/5F6Y9SHFP

@gbdomubpkm
Copy link
Author

When will this great app be usable again?

@ewdowiak
Copy link

I miss the UT Translate app too. How can I help you?

Speaking as someone who has trained neural machine translation models ... Facebook's smallest NLLB-200 model would be too big for most phones. The model alone is 2.46 GB and it requires PyTorch. (Most NMT frameworks require either PyTorch or TensorFlow). As suggested, it may be possible to quantize a translation model with GGML. But no one has done so yet, so we would have to do the work ourselves.

With that in mind, I doubt that we'll be running translation models on our UT phones any time soon. Instead, the only alternative (in the short run) is to have the app make calls to a server where we would host our own model.

Assuming that nobody is willing to sponsor a dedicated GPU for our model, translation times would be slow. But if our model were small (only the most popular languages), the wait might be tolerable.

I miss the UT Translate app too. How can I help you?

@aluyama
Copy link

aluyama commented Sep 26, 2023

Healthy instances (Today)

@walking-octopus if @thedaviddelta is unreachable or busy, may be you can maintain Lingva project too
thedaviddelta/lingva-translate#176

@ewdowiak
Copy link

Thank you! :-)

One note to add. When entering the instance in the app's settings, one must include "/api/v1" at the end. For example:
https://lingva.garudalinux.org/api/v1

@ewdowiak
Copy link

One more translation engine. My own: https://translate.napizia.com/api/v1/

Ora pozzu traduciri frasi in sicilianu cu l'app. Grazzi! :-)

@gbdomubpkm
Copy link
Author

@ewdowiak

/api/v1/

Thanks for the reminder !! I had forgotten that ! Lingva instances actually work well in Translate-UT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants