rasa/core/training/interactive.py
async def _correct_wrong_nlu(corrected_nlu: Dict[Text, Any],
                             evts: List[Dict[Text, Any]],
                             endpoint: EndpointConfig,
                             sender_id: Text
                             ) -> None:
    """A wrong NLU prediction got corrected, update core's tracker."""

    latest_message = latest_user_message(evts)
    corrected_events = all_events_before_latest_user_msg(evts)

    latest_message["parse_data"] = corrected_nlu

    await replace_events(endpoint, sender_id, corrected_events)

    await send_message(endpoint, sender_id, latest_message.get("text"),
                       latest_message.get("parse_data"))
A wrong NLU prediction got corrected, update core's tracker.
A wrong NLU prediction got corrected, update core's tracker.
A wrong NLU prediction got corrected update core ' s tracker .
async def _correct_wrong_nlu(corrected_nlu: Dict[Text, Any],
                             evts: List[Dict[Text, Any]],
                             endpoint: EndpointConfig,
                             sender_id: Text
                             ) -> None:
    latest_message = latest_user_message(evts)
    corrected_events = all_events_before_latest_user_msg(evts)
    latest_message["parse_data"] = corrected_nlu
    await replace_events(endpoint, sender_id, corrected_events)
    await send_message(endpoint, sender_id, latest_message.get("text"),
                       latest_message.get("parse_data"))
async def _correct_wrong_nlu ( corrected_nlu : Dict [ Text , Any ] , evts : List [ Dict [ Text , Any ] ] , endpoint : EndpointConfig , sender_id : Text ) -> None : latest_message = latest_user_message ( evts ) corrected_events = all_events_before_latest_user_msg ( evts ) latest_message [ "parse_data" ] = corrected_nlu await replace_events ( endpoint , sender_id , corrected_events ) await send_message ( endpoint , sender_id , latest_message . get ( "text" ) , latest_message . get ( "parse_data" ) )
A wrong NLU prediction got corrected, update core's tracker.
A wrong NLU prediction got corrected update core ' s tracker .
"""A wrong NLU prediction got corrected, update core's tracker."""
corrected_nlu
Dict[Text, Any]
evts
List[Dict[Text, Any]]
endpoint
EndpointConfig
sender_id
Text