notice

This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

rasa.nlu.persistor

get_persistor

get_persistor(name: Text) -> Optional["Persistor"]

Returns an instance of the requested persistor.

Currently, aws, gcs, azure and providing module paths are supported remote storages.

Persistor Objects

class Persistor(abc.ABC)

Store models in cloud and fetch them when needed.

persist

| persist(model_directory: Text, model_name: Text) -> None

Uploads a model persisted in the target_dir to cloud storage.

retrieve

| retrieve(model_name: Text, target_path: Text) -> None

Downloads a model that has been persisted to cloud storage.

AWSPersistor Objects

class AWSPersistor(Persistor)

Store models on S3.

Fetches them when needed, instead of storing them on the local disk.

GCSPersistor Objects

class GCSPersistor(Persistor)

Store models on Google Cloud Storage.

Fetches them when needed, instead of storing them on the local disk.

AzurePersistor Objects

class AzurePersistor(Persistor)

Store models on Azure