def get_norm_vector(item, model):
    if item not in model.vocab:
        return None
    # for deserialized models, the norm vectors are not stored
    vec = get_vector(item, model)
    norm = np.linalg.norm(vec)
    if norm != 0:
        return vec / norm
    return vec
dataset/ETHPy150Open DiceTechJobs/ConceptualSearch/generate_cluster_synonyms_file.py/get_norm_vector/original