def get_vocabulary(path_to_vocab):
    """
    Return a list of prefixes defining the vocabulary.
    """
    vocab = []
    with open(path_to_vocab) as f:
        for line in f:
            line = line.rstrip()
            vocab.append(line)
    return vocab