Version: 3.x

rasa.graph_components.providers.domain_provider

DomainProvider Objects

class DomainProvider(GraphComponent)

Provides domain during training and inference time.

__init__

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

Creates domain provider.

create

| @classmethod
| 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
| 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

| provide_train(importer: TrainingDataImporter) -> Domain

Provides domain from training data during training.

provide_inference

| provide_inference() -> Domain

Provides the domain during inference.