def read_vocabulary(file):
    """Read the vocabulary in source or target language."""
    with open(file, mode="r", encoding="utf-8") as voc_file:
        vocabulary = [l for l in voc_file]
    for i in range(len(vocabulary)):
        vocabulary[i] = vocabulary[i].replace('\n', '')
    # pp = pprint.PrettyPrinter(indent=4)
    # pp.pprint(vocabulary)
    return vocabulary