import yaml


def open_word2vec_expected_hard_skills(path):
    """Loads expected skills for different roles, to be used as a future sanity check suite for taxonomies
     (check README in ../data folder)

    :param path: yaml location
    :type path: str
    :return: expected hard_skills for various roles
    :rtype: dict
    """
    expected_skills = yaml.load(open(path), Loader=yaml.FullLoader)
    expected_skills = {key: val['hard_skills'] for key, val in expected_skills.items()}
    return expected_skills