The GCP provides an API for the translation of text from one language to another. In this recipe, we will demonstrate how this is done. When translation is performed, it uses the NMT model by default. However, if the model is not supported for the languages used, it will use the PBMT model.
The PBMT approach uses a statistical, predictive technique for language translation. The NMT usually does a better job in translation for larger and more complex text occurrences since it is based on a neural network.