rasa/core/policies/form_policy.py
def _modified_states(states):
        """Modify the states to
            - capture previous meaningful action before action_listen
            - ignore previous intent
        """
        if states[0] is None:
            action_before_listen = None
        else:
            action_before_listen = {state_name: prob
                                    for state_name, prob in states[0].items()
                                    if PREV_PREFIX in state_name and prob > 0}

        return [action_before_listen, states[-1]]
Modify the states to
            - capture previous meaningful action before action_listen
            - ignore previous intent
        
Modify the states to
capture previous meaningful action before action_listen
ignore previous intent
Modify the states to capture previous meaningful action before action_listen ignore previous intent
def _modified_states(states):
        if states[0] is None:
            action_before_listen = None
        else:
            action_before_listen = {state_name: prob
                                    for state_name, prob in states[0].items()
                                    if PREV_PREFIX in state_name and prob > 0}
        return [action_before_listen, states[-1]]
def _modified_states ( states ) : if states [ 0 ] is None : action_before_listen = None else : action_before_listen = { state_name : prob for state_name , prob in states [ 0 ] . items ( ) if PREV_PREFIX in state_name and prob > 0 } return [ action_before_listen , states [ - 1 ] ]
Modify the states to
 capture previous meaningful action before action_listen
 ignore previous intent
Modify the states to capture previous meaningful action before action_listen ignore previous intent
"""Modify the states to
            - capture previous meaningful action before action_listen
            - ignore previous intent
        """
states