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.graph_components.providers.domain_provider

DomainProvider Objects

class DomainProvider(GraphComponent)

Provides domain during training and inference time.

__init__

def __init__(model_storage: ModelStorage, resource: Resource, domain: Optional[Domain] = None) -> None

Creates domain provider.

create

@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage, resource: Resource, execution_context: ExecutionContext) -> DomainProvider

Creates component (see parent class for full docstring).

load

@classmethod
def load(cls, config: Dict[Text, Any], model_storage: ModelStorage, resource: Resource, execution_context: ExecutionContext, **kwargs: Any, ,) -> DomainProvider

Creates provider using a persisted version of itself.

provide_train

def provide_train(importer: TrainingDataImporter) -> Domain

Provides domain from training data during training.

provide_inference

def provide_inference() -> Optional[Domain]

Provides the domain during inference.