import json


def get_configure(model, featurizer_type, dataset):
    """Query for configuration

    Parameters
    ----------
    model : str
        Model type
    featurizer_type : str
        The featurization performed
    dataset : str
        Dataset for modeling

    Returns
    -------
    dict
        Returns the manually specified configuration
    """
    if featurizer_type == 'pre_train':
        with open('configures/{}/{}.json'.format(dataset, model), 'r') as f:
            config = json.load(f)
    else:
        with open('configures/{}/{}_{}.json'.format(dataset, model, featurizer_type), 'r') as f:
            config = json.load(f)
    return config