def assign_vocab_ids(word_list):
    """ Given a word list, assign ids to it and return the id dictionaries """
    word_ids = [x for x in range(len(word_list))]
    word_to_id = dict(zip(word_list, word_ids))
    id_to_word = dict(zip(word_ids, word_list))
    return word_to_id, id_to_word