rasa/core/training/dsl.py
async def read_from_file(filename, domain, interpreter=RegexInterpreter(),
                             template_variables=None, use_e2e=False):
        """Given a md file reads the contained stories."""

        try:
            with open(filename, "r", encoding="utf-8") as f:
                lines = f.readlines()
            reader = StoryFileReader(domain, interpreter,
                                     template_variables, use_e2e)
            return await reader.process_lines(lines)
        except ValueError as err:
            file_info = ("Invalid story file format. Failed to parse "
                         "'{}'".format(os.path.abspath(filename)))
            logger.exception(file_info)
            if not err.args:
                err.args = ('',)
            err.args = err.args + (file_info,)
            raise
Given a md file reads the contained stories.
Given a md file reads the contained stories.
Given a md file reads the contained stories .
async def read_from_file(filename, domain, interpreter=RegexInterpreter(),
                             template_variables=None, use_e2e=False):
        try:
            with open(filename, "r", encoding="utf-8") as f:
                lines = f.readlines()
            reader = StoryFileReader(domain, interpreter,
                                     template_variables, use_e2e)
            return await reader.process_lines(lines)
        except ValueError as err:
            file_info = ("Invalid story file format. Failed to parse "
                         "'{}'".format(os.path.abspath(filename)))
            logger.exception(file_info)
            if not err.args:
                err.args = ('',)
            err.args = err.args + (file_info,)
            raise
async def read_from_file ( filename , domain , interpreter = RegexInterpreter ( ) , template_variables = None , use_e2e = False ) : try : with open ( filename , "r" , encoding = "utf-8" ) as f : lines = f . readlines ( ) reader = StoryFileReader ( domain , interpreter , template_variables , use_e2e ) return await reader . process_lines ( lines ) except ValueError as err : file_info = ( "Invalid story file format. Failed to parse " "'{}'" . format ( os . path . abspath ( filename ) ) ) logger . exception ( file_info ) if not err . args : err . args = ( '' , ) err . args = err . args + ( file_info , ) raise
Given a md file reads the contained stories.
Given a md file reads the contained stories .
"""Given a md file reads the contained stories."""
filename
domain
interpreter
template_variables
use_e2e