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).
rasa.shared.core.training_data.story_reader.markdown_story_reader
MarkdownStoryReader Objects
Class that reads the core training data in a Markdown format.
__init__
Creates reader. See parent class docstring for more information.
read_from_file
Given a md file reads the contained stories.
parse_e2e_message
Parses an md list item line based on the current section type.
Matches expressions of the form <intent>:<example>. For the
syntax of <example> see the Rasa docs on NLU training data.
is_stories_file
Check if file contains Core training data or rule data in Markdown format.
Arguments:
file_path- Path of the file to check.
Returns:
True in case the file is a Core Markdown training data or rule data file,
False otherwise.
is_test_stories_file
Checks if a file contains test stories.
Arguments:
file_path- Path of the file which should be checked.
Returns:
True if it's a file containing test stories, otherwise False.
