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 translation

  • src_file (Optional[str], default: None) – Source file

  • output_file (Optional[str], default: None) – Output file

  • kwargs (Any) – additional values to change in the resulting opt

Return type

Namespace