notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.8.x).

Version: Master/Unreleased

rasa.engine.storage.local_model_storage

LocalModelStorage Objects

class LocalModelStorage(ModelStorage)

Stores and provides output of GraphComponents on local disk.

__init__

def __init__(storage_path: Path) -> None

Creates storage (see parent class for full docstring).

create

@classmethod
def create(cls, storage_path: Path) -> ModelStorage

Creates a new instance (see parent class for full docstring).

from_model_archive

@classmethod
def from_model_archive(cls, storage_path: Path, model_archive_path: Union[Text, Path]) -> Tuple[LocalModelStorage, ModelMetadata]

Initializes storage from archive (see parent class for full docstring).

write_to

@contextmanager
def write_to(resource: Resource) -> ContextManager[Path]

Persists data for a resource (see parent class for full docstring).

read_from

@contextmanager
def read_from(resource: Resource) -> ContextManager[Path]

Provides the data of a Resource (see parent class for full docstring).

create_model_package

def create_model_package(model_archive_path: Union[Text, Path], train_schema: GraphSchema, predict_schema: GraphSchema, domain: Domain) -> ModelMetadata

Creates model package (see parent class for full docstring).