load_model

glotaran.plugin_system.project_io_registration.load_model(file_name: StrOrPath, format_name: str | None = None, **kwargs: Any) Model[source]

Create a Model instance from the specs defined in a file.

Parameters:
  • file_name (StrOrPath) – File containing the model specs.

  • format_name (str) – Format the file is in, if not provided it will be inferred from the file extension.

  • **kwargs (Any) – Additional keyword arguments passes to the load_model implementation of the project io plugin.

Returns:

Model instance created from the file.

Return type:

Model