rasa/core/training/interactive.py
async def _correct_entities(latest_message: Dict[Text, Any],
                            endpoint: EndpointConfig,
                            sender_id: Text) -> List[Dict[Text, Any]]:
    """Validate the entities of a user message.

    Returns the corrected entities"""
    from rasa_nlu.training_data.formats import MarkdownReader

    parse_original = latest_message.get("parse_data", {})
    entity_str = _as_md_message(parse_original)
    question = questionary.text(
        "Please mark the entities using [value](type) notation",
        default=entity_str)

    annotation = await _ask_questions(question, sender_id, endpoint)
    # noinspection PyProtectedMember
    parse_annotated = MarkdownReader()._parse_training_example(annotation)

    corrected_entities = _merge_annotated_and_original_entities(
        parse_annotated, parse_original)

    return corrected_entities
Validate the entities of a user message.

    Returns the corrected entities
Validate the entities of a user message.
Returns the corrected entities
Validate the entities of a user message . Returns the corrected entities
async def _correct_entities(latest_message: Dict[Text, Any],
                            endpoint: EndpointConfig,
                            sender_id: Text) -> List[Dict[Text, Any]]:
    from rasa_nlu.training_data.formats import MarkdownReader
    parse_original = latest_message.get("parse_data", {})
    entity_str = _as_md_message(parse_original)
    question = questionary.text(
        "Please mark the entities using [value](type) notation",
        default=entity_str)
    annotation = await _ask_questions(question, sender_id, endpoint)
    parse_annotated = MarkdownReader()._parse_training_example(annotation)
    corrected_entities = _merge_annotated_and_original_entities(
        parse_annotated, parse_original)
    return corrected_entities
async def _correct_entities ( latest_message : Dict [ Text , Any ] , endpoint : EndpointConfig , sender_id : Text ) -> List [ Dict [ Text , Any ] ] : from rasa_nlu . training_data . formats import MarkdownReader parse_original = latest_message . get ( "parse_data" , { } ) entity_str = _as_md_message ( parse_original ) question = questionary . text ( "Please mark the entities using [value](type) notation" , default = entity_str ) annotation = await _ask_questions ( question , sender_id , endpoint ) parse_annotated = MarkdownReader ( ) . _parse_training_example ( annotation ) corrected_entities = _merge_annotated_and_original_entities ( parse_annotated , parse_original ) return corrected_entities
Validate the entities of a user message.
Validate the entities of a user message .
"""Validate the entities of a user message.

    Returns the corrected entities""" # noinspection PyProtectedMember
latest_message
Dict[Text, Any]
endpoint
EndpointConfig
sender_id
Text