Version: 2.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()
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.
list_models
| list_models() -> List[Text]
Lists all the trained models.
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