Domain Adaptation is useful for specializing current generic Machine Translation models, mainly when the specialized corpus is too limited to train a separate model. Furthermore, Domain Adaptation techniques can be handy for low-resource languages that share vocabulary and structure with other rich-resource family languages.
As part of my Machine Translation research, I managed to achieve successful results in retraining Neural Machine Translation models for the purpose of Domain Adaptation using OpenNMT-py (the PyTorch version of OpenNMT). In this article, I am elaborating on the path I took and the achieved outcomes; hopefully, this will be useful for others.
Continue reading “Domain Adaptation in Neural Machine Translation”
In this article, I am exploring several GPU options I have either used myself or considered, for training my Neural Machine Translation models. As GPU machines are known for being expensive, the main factor I am concentrating on here is “cost”, which can be determined not only by machine rates, but also in light of other considerations such as technical specifications, and long-term vs. short-term commitments.
Continue reading “GPU Options for Neural Machine Translation”
The question was: if I want to have a stand-alone version of OpenNMT that does not require any manual preparations or installations on the target machine, and does not connect to the Internet for Machine Translation, what are my options to achieve this?
Note that my current implementation depends on an OpenNMT Localhost REST API which is perfect for most cases, but not for the case when a client wants to be able to move the whole thing as one package without any prior (manual) preparation or installation of dependencies.
After some research, I finally managed to achieve progress using PyInstaller, NSIS and the PyTorch version of OpenNMT.
Continue reading “Stand-alone Executable Translator for OpenNMT”
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.
Continue reading “Machine Translation Web Interface for OpenNMT”
I have implemented the translation option
Continue reading “OpenNMT-Py -phrase-table Translation Option”
-phrase_table into the OpenNMT-py version, and today it has been merged into the repository. The
-phrase_table was already documented from the Lua version but was not implemented in the PyTorch version.