import json


def open_vocab(vocab_path):
    """
    Opens the json containing the vocabulary used for the word2vec
    Args:
        vocab_path : str
            the path where the vocab json file is stored
    Returns:
        vocab_dic : dic
            the vocab dictionnary
    """
    with open(vocab_path, "r", encoding="utf-8") as vo:
        vocab_dic = json.load(vo, encoding="utf-8")
    return vocab_dic