Hi everyone, I’m new in NMT and decided to start with OpenNMT-Py.
I am currently using the API of OpenNMT-Py for my research work, and I’m following the guides in the documentation here
I can successfully train a model, but i’m not sure how can I save the model and use it for inference/prediction purposes.
As I’m reading through the docs, there is a parameter called model_saver in the Training class that has the following desciption:
onmt.models.ModelSaverBase ) – the saver is used to save a checkpoint. Thus nothing will be saved if this parameter is None
I’m not sure what do I need to provide in the model_saver parameter for me to use it as an API/Library rather than directly using the trainer.py and passing a parameter to save a model. similar to OpenNMT-Py’s official example in the docs: https://opennmt.net/OpenNMT-py/Library.html I’m figuring out how can I save a model if I’m implementing OpenNMT-Py as an API/Library.