def parse(self, text):
    'Parse a text message.'
    if self.is_using_deprecated_format(text):
        (intent, entities) = self.deprecated_extraction(text)
    else:
        (intent, entities) = self.extract_intent_and_entities(text)
    return {'text': text, 'intent': {'name': intent, 'confidence': 1.0}, 'intent_ranking': [{'name': intent, 'confidence': 1.0}], 'entities': entities}
Parse a text message.
def parse(self, text):
    
    if self.is_using_deprecated_format(text):
        (intent, entities) = self.deprecated_extraction(text)
    else:
        (intent, entities) = self.extract_intent_and_entities(text)
    return {'text': text, 'intent': {'name': intent, 'confidence': 1.0}, 'intent_ranking': [{'name': intent, 'confidence': 1.0}], 'entities': entities}