impedaka
(Alice Yu)
October 12, 2022, 2:11am
1
After creating a model following the quickstart guide (Quickstart — OpenNMT-py documentation ), I want to use it with my flask website. I’m not sure how to load and use the model
ymoslem
(Yasmin Moslem)
October 12, 2022, 6:18pm
2
Dear Alice,
You can check this tutorial on how to build a simple interface for machine translation:
Today, we will create a very simple Machine Translation (MT) Web Interface for OpenNMT-py, OpenNMT-tf and FairSeq models using CTranslate2 and Streamlit.
Previously, there were other tutorials on how to use a simple server and web interface with Flask . However, today’s tutorial is for those who want to create an ultra simple, quick demo.
We also aim at highlighting that CTranslate2 is now the way to go for serving OpenNMT models due to its exceptional performance. It is completely up to you to…
Please note that CTranslate2 supports only Transformer models, as explained here:
https://opennmt.net/OpenNMT-py/FAQ.html#how-do-i-use-the-transformer-model
For more details, feel free to check this tutorial:
Neural Machine Translation (NMT) tutorial. Data preprocessing, model training, evaluation, and deployment. - GitHub - ymoslem/OpenNMT-Tutorial: Neural Machine Translation (NMT) tutorial. Data prep...
All the best,
Yasmin
1 Like