rxn.onmt_utils.internal_translation_utils

Functions

get_onmt_opt(translation_model[, src_file, ...])

Create the opt arguments by taking the defaults and overwriting a few values.

onmt_parser()

Create the OpenNMT parser, adapted from OpenNMT-Py repo.

Classes

RawTranslator(opt)

Translator class that is very coupled to the internal OpenNMT implementation.

TranslationResult(text, score)

Struct containing the result of a translation with OpenNMT.