rxn.onmt_utils.internal_translation_utils.get_onmt_opt
- rxn.onmt_utils.internal_translation_utils.get_onmt_opt(translation_model, src_file=None, output_file=None, **kwargs)[source]
Create the opt arguments by taking the defaults and overwriting a few values.
- Parameters
translation_model (
Iterable[str]) – Model(s) to for translationsrc_file (
Optional[str], default:None) – Source fileoutput_file (
Optional[str], default:None) – Output filekwargs (
Any) – additional values to change in the resulting opt
- Return type
Namespace