I have a saved NMT model ready with me and I want to deploy it using Heroku but the problem is “How to generate translations from loading a saved model into a python program while hosting it on a server”.
Please help me get this thing set up.
You may find the following posts helpful:
OpenNMT-py Translation Server – Update [2018-09-13]
I made a simple REST server to use OpenNMT-py models.
I] How it works?
The idea behind the translation server is to make a entry point for translation with multiple models.
A configuration file (default: ./available_models/conf.json) will describes such models, with the path of the checkpoint files along with other parameters.
models_root: (opt) folder containing model checkpoints, [default: ./available_models]
You might want to build a GUI for your Machine Translation model to show to a client or to be able to translate sentences online. I have created a simple web interface for OpenNMT which depends on Python Flask and Flask-PageDown libraries. To be able to use the web interface, you need first to implement an OpenNMT Rest API Server as explained by Paul Tardy
Simple OpenNMT-py REST server.
You can find the code of the machine translation web interface at:
If you have questions, please let…