notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.x).

Version: Master/Unreleased

rasa.shared.core.training_data.loading

load_data_from_resource

def load_data_from_resource(resource: Union[Text], domain: Domain, exclusion_percentage: Optional[int] = None) -> List["StoryStep"]

Loads core training data from the specified folder.

Arguments:

  • resource - Folder/File with core training data files.
  • domain - Domain object.
  • exclusion_percentage - Identifies the percentage of training data that should be excluded from the training.

Returns:

Story steps from the training data.

load_data_from_files

def load_data_from_files(story_files: List[Text], domain: Domain, exclusion_percentage: Optional[int] = None) -> List["StoryStep"]

Loads core training data from the specified files.

Arguments:

  • story_files - List of files with training data in it.
  • domain - Domain object.
  • exclusion_percentage - Identifies the percentage of training data that should be excluded from the training.

Returns:

Story steps from the training data.