Helsinki-NLP / Opus-MT

Open neural machine translation models and web services
MIT License
592 stars 71 forks source link

translation app for android / iphone #25

Open jorgtied opened 3 years ago

jorgtied commented 3 years ago

Create apps for mobiles. First, use on-line services - later integrate translation engine in the app? collaborate with bergamot project? (https://browser.mt/) (include also fine-tuning options and data donation)

flutter-painter commented 10 months ago

Hi @jorgtied, I would suggest a different approach than Bergamot ; Most Helsinki models are published in safetensors and therefore can be used in Hugging Face candle in Rust. Rust can be used natively in mobile, for example for android : https://source.android.com/docs/setup/build/rust/building-rust-modules/overview?hl=fr

Also a few Helsinki models are already published in Rust. I suppose they can be directly used within a Rust project, I wonder yet what would be the dependencies and if an example already exists

flutter-painter commented 10 months ago

Seems this should do the trick : https://github.com/guillaume-be/rust-bert/blob/main/examples/translation_marian.rs