@staticmethod
def deprecated_extraction(user_input):
    'DEPRECATED parse of user input message.'
    value_assign_rx = '\\s*(.+)\\s*=\\s*(.+)\\s*'
    prefixes = re.escape(RegexInterpreter.allowed_prefixes())
    structured_message_rx = (('^[' + prefixes) + ']?([^\\[]+)(\\[(.+)\\])?')
    m = re.search(structured_message_rx, user_input)
    if (m is not None):
        intent = m.group(1).lower()
        offset = m.start(3)
        entities_str = m.group(3)
        entities = []
        if (entities_str is not None):
            for entity_str in entities_str.split(','):
                for match in re.finditer(value_assign_rx, entity_str):
                    start = (match.start(2) + offset)
                    end = (match.end(0) + offset)
                    entity = {'entity': match.group(1), 'start': start, 'end': end, 'value': match.group(2)}
                    entities.append(entity)
        return (intent, entities)
    else:
        return (None, [])
DEPRECATED parse of user input message.
@staticmethod
def deprecated_extraction(user_input):
    
    value_assign_rx = '\\s*(.+)\\s*=\\s*(.+)\\s*'
    prefixes = re.escape(RegexInterpreter.allowed_prefixes())
    structured_message_rx = (('^[' + prefixes) + ']?([^\\[]+)(\\[(.+)\\])?')
    m = re.search(structured_message_rx, user_input)
    if (m is not None):
        intent = m.group(1).lower()
        offset = m.start(3)
        entities_str = m.group(3)
        entities = []
        if (entities_str is not None):
            for entity_str in entities_str.split(','):
                for match in re.finditer(value_assign_rx, entity_str):
                    start = (match.start(2) + offset)
                    end = (match.end(0) + offset)
                    entity = {'entity': match.group(1), 'start': start, 'end': end, 'value': match.group(2)}
                    entities.append(entity)
        return (intent, entities)
    else:
        return (None, [])