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.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.