rasa.engine.storage.local_model_storage
windows_safe_temporary_directory
Like tempfile.TemporaryDirectory
, but works with Windows and long file names.
On Windows by default there is a restriction on long path names. Using the prefix below allows to bypass this restriction in environments where it's not possible to override this behavior, mostly for internal policy reasons.
Reference: https://stackoverflow.com/a/49102229
LocalModelStorage Objects
Stores and provides output of GraphComponents
on local disk.
__init__
Creates storage (see parent class for full docstring).
create
Creates a new instance (see parent class for full docstring).
from_model_archive
Initializes storage from archive (see parent class for full docstring).
metadata_from_archive
Retrieves metadata from archive (see parent class for full docstring).
write_to
Persists data for a resource (see parent class for full docstring).
read_from
Provides the data of a Resource
(see parent class for full docstring).
create_model_package
Creates model package (see parent class for full docstring).