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 toNone
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 pipelinepipeline
- a list of component configs in the NLU pipelinedefaults
- 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.