Convert character vectors to integer vectors.

def word_to_vector(word):
    """
    Convert character vectors to integer vectors.
    """
    vector = []
    for char in list(word):
        vector.append(char2int(char))
    return vector