rasa/core/training/dsl.py
def _parse_event_line(line):
        """Tries to parse a single line as an event with arguments."""

        # the regex matches "slot{"a": 1}"
        m = re.search('^([^{]+)([{].+)?', line)
        if m is not None:
            event_name = m.group(1).strip()
            slots_str = m.group(2)
            parameters = StoryFileReader._parameters_from_json_string(
                slots_str, line)
            return event_name, parameters
        else:
            warnings.warn("Failed to parse action line '{}'. "
                          "Ignoring this line.".format(line))
            return "", {}
Tries to parse a single line as an event with arguments.
Tries to parse a single line as an event with arguments.
Tries to parse a single line as an event with arguments .
def _parse_event_line(line):
        m = re.search('^([^{]+)([{].+)?', line)
        if m is not None:
            event_name = m.group(1).strip()
            slots_str = m.group(2)
            parameters = StoryFileReader._parameters_from_json_string(
                slots_str, line)
            return event_name, parameters
        else:
            warnings.warn("Failed to parse action line '{}'. "
                          "Ignoring this line.".format(line))
            return "", {}
def _parse_event_line ( line ) : m = re . search ( '^([^{]+)([{].+)?' , line ) if m is not None : event_name = m . group ( 1 ) . strip ( ) slots_str = m . group ( 2 ) parameters = StoryFileReader . _parameters_from_json_string ( slots_str , line ) return event_name , parameters else : warnings . warn ( "Failed to parse action line '{}'. " "Ignoring this line." . format ( line ) ) return "" , { }
Tries to parse a single line as an event with arguments.
Tries to parse a single line as an event with arguments .
"""Tries to parse a single line as an event with arguments.""" # the regex matches "slot{"a": 1}"
line