notice

This is documentation for Rasa Open Source Documentation v2.2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.6.x).

Version: 2.2.x

rasa.nlu.config

load

load(config: Optional[Union[Text, Dict]] = None, **kwargs: Any) -> "RasaNLUModelConfig"

Create configuration from file or dict.

Arguments:

  • config - a file path, a dictionary with configuration keys. If set to None the configuration will be loaded from the default file path.

Returns:

Configuration object.

component_config_from_pipeline

component_config_from_pipeline(index: int, pipeline: List[Dict[Text, Any]], defaults: Optional[Dict[Text, Any]] = None) -> Dict[Text, Any]

Get config of the component with the given index in the pipeline.

Arguments:

  • index - index the component in the pipeline
  • pipeline - a list of component configs in the NLU pipeline
  • defaults - default config of the component

Returns:

config of the component

RasaNLUModelConfig Objects

class RasaNLUModelConfig()

A class that stores NLU model configuration parameters.

__init__

| __init__(configuration_values: Optional[Dict[Text, Any]] = None) -> None

Create a model configuration.

Arguments:

  • configuration_values - optional dictionary to override defaults.