def _split_generators(self, dl_manager):
    """Returns splits."""
    filenames = {
        "training_dat": _TRAINING_URL_TEMPLATE.format(type="dat"),
        "training_cat": _TRAINING_URL_TEMPLATE.format(type="cat"),
        "training_info": _TRAINING_URL_TEMPLATE.format(type="info"),
        "testing_dat": _TESTING_URL_TEMPLATE.format(type="dat"),
        "testing_cat": _TESTING_URL_TEMPLATE.format(type="cat"),
        "testing_info": _TESTING_URL_TEMPLATE.format(type="info"),
    }

    files = dl_manager.download_and_extract(filenames)

    return [
        tfds.core.SplitGenerator(
            name=tfds.Split.TRAIN,
            num_shards=1,
            gen_kwargs=dict(
                dat_path=files["training_dat"],
                cat_path=files["training_cat"],
                info_path=files["training_info"])),
        tfds.core.SplitGenerator(
            name=tfds.Split.TEST,
            num_shards=1,
            gen_kwargs=dict(
                dat_path=files["testing_dat"],
                cat_path=files["testing_cat"],
                info_path=files["testing_info"])),
    ]
def _split_generators ( self , dl_manager ) : filenames = { "training_dat" : _TRAINING_URL_TEMPLATE . format ( type = "dat" ) , "training_cat" : _TRAINING_URL_TEMPLATE . format ( type = "cat" ) , "training_info" : _TRAINING_URL_TEMPLATE . format ( type = "info" ) , "testing_dat" : _TESTING_URL_TEMPLATE . format ( type = "dat" ) , "testing_cat" : _TESTING_URL_TEMPLATE . format ( type = "cat" ) , "testing_info" : _TESTING_URL_TEMPLATE . format ( type = "info" ) , } files = dl_manager . download_and_extract ( filenames ) return [ tfds . core . SplitGenerator ( name = tfds . Split . TRAIN , num_shards = 1 , gen_kwargs = dict ( dat_path = files [ "training_dat" ] , cat_path = files [ "training_cat" ] , info_path = files [ "training_info" ] ) ) , tfds . core . SplitGenerator ( name = tfds . Split . TEST , num_shards = 1 , gen_kwargs = dict ( dat_path = files [ "testing_dat" ] , cat_path = files [ "testing_cat" ] , info_path = files [ "testing_info" ] ) ) , ]
Returns splits.