How to translate a sentence using jupyter notebook?


I’m trying to use the onmt library to load a trained OpenNMT-py model in a jupyter notebook and make translations on the go. I want it to be able to do something like this in jupyter:

model = onmt.module.load(/path/to/
text = "hola como estas"

Hello how are you

I can’t find any documentation on how to do this. Please help!


Did you take a look at this documentation?

There is a section for translation.