load_config

opennmt.load_config(config_paths, config=None)[source]

Loads YAML configuration files.

Parameters
  • config_paths – A list of configuration files that will be merged to a single configuration. The rightmost configuration takes priority.

  • config – A (possibly non empty) config dictionary to fill.

Returns

The configuration as Python dictionary.