This model can be used for translating text in source language (En) to a text in target language (De/Es/Fr).
The model is based on Transformer "Base" architecture originally presented in "Attention Is All You Need" paper . It is using SentencePiece tokenizer .
These models were trained on a collection of many publicly available datasets comprising of millions of parallel sentences. The NeMo toolkit  was used for training this model over roughly 450k steps.
While training this model, we used the following datasets:
We used the SentencePiece tokenizer  with shared encoder and decoder BPE tokenizers.
The accuracy of translation models are often measured using BLEU scores . The model achieves the following sacreBLEU  scores on WMT test sets
De WMT13 - 26.5 WMT14 - 27.3 Es WMT12 - 38.4 WMT13 - 34.5 Fr WMT13 - 33.3 WMT14 - 38.6
The model is available for use in the NeMo toolkit , and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.
import nemo import nemo.collections.nlp as nemo_nlp nmt_model = nemo_nlp.models.machine_translation.MTEncDecModel.from_pretrained(model_name="mnmt_en_deesfr_transformerbase")
python [NEMO_GIT_FOLDER]/examples/nlp/machine_translation/nmt_transformer_infer.py --model=mnmt_en_deesfr_transformerbase.nemo --srctext=[TEXT_IN_SRC_LANGUAGE] --tgtout=[WHERE_TO_SAVE_TRANSLATIONS] --target_lang [TARGET_LANGUAGE] --source_lang en
where [TARGET_LANGUAGE] can be 'de' or 'es' or 'fr'
This translate method of the NMT model accepts a list of de-tokenized strings.
The translate method outputs a list of de-tokenized strings in the target language.
No known limitations at this time.
 Vaswani, Ashish, et al. "Attention is all you need." arXiv preprint arXiv:1706.03762 (2017).