rasa.importers.importer
You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest documentation here.
TrainingDataImporter Objects
class TrainingDataImporter()
Common interface for different mechanisms to load training data.
get_domain
async get_domain() -> Domain
Retrieves the domain of the bot.
Returns:
Loaded Domain.
get_stories
async get_stories(template_variables: Optional[Dict]=None, use_e2e: bool=False, exclusion_percentage: Optional[int]=None) -> StoryGraph
Retrieves the stories that should be used for training. Arguments:
template_variables- Values of templates that should be replaced while reading the story files.use_e2e- Specifies whether to parse end to end learning annotations.exclusion_percentage- Amount of training data that should be excluded. Returns:StoryGraphcontaining all loaded stories.
get_config
async get_config() -> Dict
Retrieves the configuration that should be used for the training. Returns: The configuration as dictionary.
get_nlu_data
async get_nlu_data(language: Optional[Text]=