import yaml


class Dict(dict):
    __setattr__ = dict.__setitem__
    __getattr__ = dict.__getitem__


def dict2obj(dictObj):
    if not isinstance(dictObj, dict):
        return dictObj
    d = Dict()
    for k, v in dictObj.items():
        d[k] = dict2obj(v)
    return d


def get_args():
    """返回参数
    """
    f = open('../resources/param.yaml', 'r')
    file_data = f.read()
    f.close()
    return dict2obj(yaml.load(file_data))


if __name__ == '__main__':
    args = get_args()
    print(args.model.n_state)

fb14df553919d756d1e4c22ea96355ab09200e1e
<mask token>


class Dict(dict):
    __setattr__ = dict.__setitem__
    __getattr__ = dict.__getitem__


<mask token>

<mask token>


class Dict(dict):
    __setattr__ = dict.__setitem__
    __getattr__ = dict.__getitem__


def dict2obj(dictObj):
    if not isinstance(dictObj, dict):
        return dictObj
    d = Dict()
    for k, v in dictObj.items():
        d[k] = dict2obj(v)
    return d


def get_args():
    """返回参数
    """
    f = open('../resources/param.yaml', 'r')
    file_data = f.read()
    f.close()
    return dict2obj(yaml.load(file_data))


<mask token>

<mask token>


class Dict(dict):
    __setattr__ = dict.__setitem__
    __getattr__ = dict.__getitem__


def dict2obj(dictObj):
    if not isinstance(dictObj, dict):
        return dictObj
    d = Dict()
    for k, v in dictObj.items():
        d[k] = dict2obj(v)
    return d


def get_args():
    """返回参数
    """
    f = open('../resources/param.yaml', 'r')
    file_data = f.read()
    f.close()
    return dict2obj(yaml.load(file_data))


if __name__ == '__main__':
    args = get_args()
    print(args.model.n_state)

import yaml


class Dict(dict):
    __setattr__ = dict.__setitem__
    __getattr__ = dict.__getitem__


def dict2obj(dictObj):
    if not isinstance(dictObj, dict):
        return dictObj
    d = Dict()
    for k, v in dictObj.items():
        d[k] = dict2obj(v)
    return d


def get_args():
    """返回参数
    """
    f = open('../resources/param.yaml', 'r')
    file_data = f.read()
    f.close()
    return dict2obj(yaml.load(file_data))


if __name__ == '__main__':
    args = get_args()
    print(args.model.n_state)
