def get_intents_lookup(intents):
    """From a list of intents gives back a dictionary that maps the value to the index in the original list"""
    intents_lookup = {}
    for index, value in enumerate(intents):
        intents_lookup[value] = index
    return intents_lookup