rasa/core/interpreter.py
async def _rasa_http_parse(self, text, message_id=None):
        """Send a text message to a running rasa NLU http server.

        Return `None` on failure."""

        if not self.endpoint:
            logger.error(
                "Failed to parse text '{}' using rasa NLU over http. "
                "No rasa NLU server specified!".format(text))
            return None

        params = {
            "token": self.endpoint.token,
            "model": self.model_name,
            "project": self.project_name,
            "q": text,
            "message_id": message_id
        }

        url = "{}/parse".format(self.endpoint.url)
        # noinspection PyBroadException
        try:
            async with aiohttp.ClientSession() as session:
                async with session.post(url, json=params) as resp:
                    if resp.status == 200:
                        return await resp.json()
                    else:
                        logger.error(
                            "Failed to parse text '{}' using rasa NLU over "
                            "http. Error: {}".format(text, await resp.text()))
                        return None
        except Exception:
            logger.exception(
                "Failed to parse text '{}' using rasa NLU over http. "
                "".format(text))
            return None
Send a text message to a running rasa NLU http server.

        Return `None` on failure.
Send a text message to a running rasa NLU http server.
Return `None` on failure.
Send a text message to a running rasa NLU http server . Return ` None ` on failure .
async def _rasa_http_parse(self, text, message_id=None):
        if not self.endpoint:
            logger.error(
                "Failed to parse text '{}' using rasa NLU over http. "
                "No rasa NLU server specified!".format(text))
            return None
        params = {
            "token": self.endpoint.token,
            "model": self.model_name,
            "project": self.project_name,
            "q": text,
            "message_id": message_id
        }
        url = "{}/parse".format(self.endpoint.url)
        try:
            async with aiohttp.ClientSession() as session:
                async with session.post(url, json=params) as resp:
                    if resp.status == 200:
                        return await resp.json()
                    else:
                        logger.error(
                            "Failed to parse text '{}' using rasa NLU over "
                            "http. Error: {}".format(text, await resp.text()))
                        return None
        except Exception:
            logger.exception(
                "Failed to parse text '{}' using rasa NLU over http. "
                "".format(text))
            return None
async def _rasa_http_parse ( self , text , message_id = None ) : if not self . endpoint : logger . error ( "Failed to parse text '{}' using rasa NLU over http. " "No rasa NLU server specified!" . format ( text ) ) return None params = { "token" : self . endpoint . token , "model" : self . model_name , "project" : self . project_name , "q" : text , "message_id" : message_id } url = "{}/parse" . format ( self . endpoint . url ) try : async with aiohttp . ClientSession ( ) as session : async with session . post ( url , json = params ) as resp : if resp . status == 200 : return await resp . json ( ) else : logger . error ( "Failed to parse text '{}' using rasa NLU over " "http. Error: {}" . format ( text , await resp . text ( ) ) ) return None except Exception : logger . exception ( "Failed to parse text '{}' using rasa NLU over http. " "" . format ( text ) ) return None
Send a text message to a running rasa NLU http server.
Send a text message to a running rasa NLU http server .
"""Send a text message to a running rasa NLU http server.

        Return `None` on failure.""" # noinspection PyBroadException
self
text
message_id