import codecs


def load_vocab(vocab_path):
    """ Loading a vocabulary file

    :param vocab_path: Path to vocabulary file
    :return: Array contains words
    """
    with codecs.open(vocab_path, encoding="utf-8") as fobj:
        vocab = fobj.readlines()
    return vocab