def get_embedding(word, model):
    """
    Method to get embedding of given word

    parameters
    -----------
    :param word: str
    :param model: object
        Word embedding model
    :return: vector
    """
    if word in model.wv.vocab:
        return model.wv[word]
    else:
        raise KeyError