rasa/core/training/interactive.py
def _as_md_message(parse_data: Dict[Text, Any]) -> Text:
    """Display the parse data of a message in markdown format."""
    from rasa_nlu.training_data.formats import MarkdownWriter

    if parse_data.get("text", "").startswith(INTENT_MESSAGE_PREFIX):
        return parse_data.get("text")

    if not parse_data.get("entities"):
        parse_data["entities"] = []
    # noinspection PyProtectedMember
    return MarkdownWriter()._generate_message_md(parse_data)
Display the parse data of a message in markdown format.
Display the parse data of a message in markdown format.
Display the parse data of a message in markdown format .
def _as_md_message(parse_data: Dict[Text, Any]) -> Text:
    from rasa_nlu.training_data.formats import MarkdownWriter
    if parse_data.get("text", "").startswith(INTENT_MESSAGE_PREFIX):
        return parse_data.get("text")
    if not parse_data.get("entities"):
        parse_data["entities"] = []
    return MarkdownWriter()._generate_message_md(parse_data)
def _as_md_message ( parse_data : Dict [ Text , Any ] ) -> Text : from rasa_nlu . training_data . formats import MarkdownWriter if parse_data . get ( "text" , "" ) . startswith ( INTENT_MESSAGE_PREFIX ) : return parse_data . get ( "text" ) if not parse_data . get ( "entities" ) : parse_data [ "entities" ] = [ ] return MarkdownWriter ( ) . _generate_message_md ( parse_data )
Display the parse data of a message in markdown format.
Display the parse data of a message in markdown format .
"""Display the parse data of a message in markdown format.""" # noinspection PyProtectedMember
parse_data
Dict[Text, Any]