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.train
TrainingException Objects
class TrainingException(Exception)
Exception wrapping lower level exceptions that may happen while training
Attributes:
failed_target_project
- name of the failed projectmessage
- explanation of why the request is invalid
load_data_from_endpoint
async load_data_from_endpoint(data_endpoint: EndpointConfig, language: Optional[Text] = "en") -> "TrainingData"
Load training data from a URL.
create_persistor
create_persistor(persistor: Optional[Text]) -> Optional["Persistor"]
Create a remote persistor to store the model if configured.
train
async train(nlu_config: Union[Text, Dict, RasaNLUModelConfig], data: Union[Text, "TrainingDataImporter"], path: Optional[Text] = None, fixed_model_name: Optional[Text] = None, storage: Optional[Text] = None, component_builder: Optional[ComponentBuilder] = None, training_data_endpoint: Optional[EndpointConfig] = None, persist_nlu_training_data: bool = False, model_to_finetune: Optional[Interpreter] = None, **kwargs: Any, ,) -> Tuple[Trainer, Interpreter, Optional[Text]]
Loads the trainer and the data and runs the training of the model.