def extract_from_result(result, key):
    """ Returns the chosen ids from an answer
        :param result: the result from one answer
        :return: the values of the chosen key from the result tokens """
    values = []
    for token in result:
        values.append(token[key])
    return values