-
-
Notifications
You must be signed in to change notification settings - Fork 131
Description
Hi @lijy91,
Thank you for sharing such a great flutter tool !
Is offline machine translation in your roadmap ?
By this I mean giving users the possibility to select a model on their machines and to use it for translations.
Assuming this is something you are also interested in...
For easier Dart integration I would recommend MarianMT which weigh little and run on small CPU.
I see three possible approaches :
- Build on top of bergamot-translator C++ using FFI
- Build on top of candle rust using rinf
- Build a dedicated Dart onnx runtime for MarianMT
Approach n°1 is light and simple but it would limit models to those available through the Bergamote project, eg :
English, Czech, German, Spanish, Estonian, Norwegian B., Norwegian N., Bulgarian, Polish and French
Approach n°2 is heavy ; it means adding Rust to biyi and building rinf interface, yet all MarianMT models would be available for offline translation
Approach n°3 is tedious, it means building an API on top of onnxruntime_flutter or fonnx and also convert MarianMT models to ONNX
What do you think ?