notice

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

Version: 2.0.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 project
  • message - 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])

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, **kwargs: Any, ,) -> Tuple[Trainer, Interpreter, Optional[Text]]

Loads the trainer and the data and runs the training of the model.