notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.0.x).

Version: Master/Unreleased

rasa.nlu.registry

This is a somewhat delicate package. It contains all registered components and preconfigured templates.

Hence, it imports all of the components. To avoid cycles, no component should import this in module scope.

ComponentNotFoundException Objects

class ComponentNotFoundException(ModuleNotFoundError, RasaException)

Raised if a module referenced by name can not be imported.

get_component_class

get_component_class(component_name: Text) -> Type["Component"]

Resolve component name to a registered components class.

load_component_by_meta

load_component_by_meta(component_meta: Dict[Text, Any], model_dir: Text, metadata: Metadata, cached_component: Optional["Component"], **kwargs: Any, ,) -> Optional["Component"]

Resolves a component and calls its load method.

Inits it based on a previously persisted model.

create_component_by_config

create_component_by_config(component_config: Dict[Text, Any], config: "RasaNLUModelConfig") -> Optional["Component"]

Resolves a component and calls it's create method.

Inits it based on a previously persisted model.