Unpacks a model archive and initializes a `ModelStorage`. Args: storage_path: Directory which will contain the persisted graph components. model_archive_path: The path to the model archive. Returns: Initialized model storage, and metadata about t
(
cls, storage_path: Path, model_archive_path: Union[Text, Path]
)
| 37 | @classmethod |
| 38 | @abc.abstractmethod |
| 39 | def from_model_archive( |
| 40 | cls, storage_path: Path, model_archive_path: Union[Text, Path] |
| 41 | ) -> Tuple[ModelStorage, ModelMetadata]: |
| 42 | """Unpacks a model archive and initializes a `ModelStorage`. |
| 43 | |
| 44 | Args: |
| 45 | storage_path: Directory which will contain the persisted graph components. |
| 46 | model_archive_path: The path to the model archive. |
| 47 | |
| 48 | Returns: |
| 49 | Initialized model storage, and metadata about the model. |
| 50 | |
| 51 | Raises: |
| 52 | `UnsupportedModelError` if the loaded meta data indicates that the model |
| 53 | has been created with an outdated Rasa version. |
| 54 | """ |
| 55 | ... |
| 56 | |
| 57 | @classmethod |
| 58 | @abc.abstractmethod |
no outgoing calls