def _rasa_http_parse(self, text):
    'Send a text message to a running rasa NLU http server.\n\n        Return `None` on failure.'
    if (not self.server):
        logger.error("Failed to parse text '{}' using rasa NLU over http. No rasa NLU server specified!".format(text))
        return None
    params = {'token': self.token, 'model': self.model_name, 'project': self.project_name, 'q': text}
    url = '{}/parse'.format(self.server)
    try:
        result = requests.get(url, params=params)
        if (result.status_code == 200):
            return result.json()
        else:
            logger.error("Failed to parse text '{}' using rasa NLU over http. Error: {}".format(text, result.text))
            return None
    except Exception as e:
        logger.error("Failed to parse text '{}' using rasa NLU over http. Error: {}".format(text, e))
        return None
Send a text message to a running rasa NLU http server.

Return `None` on failure.
def _rasa_http_parse(self, text):
    'Send a text message to a running rasa NLU http server.\n\n        Return `None` on failure.'
    if (not self.server):
        logger.error("Failed to parse text '{}' using rasa NLU over http. No rasa NLU server specified!".format(text))
        return None
    params = {'token': self.token, 'model': self.model_name, 'project': self.project_name, 'q': text}
    url = '{}/parse'.format(self.server)
    try:
        result = requests.get(url, params=params)
        if (result.status_code == 200):
            return result.json()
        else:
            logger.error("Failed to parse text '{}' using rasa NLU over http. Error: {}".format(text, result.text))
            return None
    except Exception as e:
        logger.error("Failed to parse text '{}' using rasa NLU over http. Error: {}".format(text, e))
        return None