Datasets:

License:

Which is test split of this dataset?

#2
by rin2401 - opened

I think this code made tst2012 is not used

def _split_generators(self, dl_manager):
    source, target = self.config.language_pair

    files = {}
    for split in ("train", "dev", "test"):
        if split == "dev":
            dl_dir_src = dl_manager.download_and_extract(_DATA_URL.format("tst2012", source))
            dl_dir_tar = dl_manager.download_and_extract(_DATA_URL.format("tst2012", target))
        if split == "dev":
            dl_dir_src = dl_manager.download_and_extract(_DATA_URL.format("tst2013", source))
            dl_dir_tar = dl_manager.download_and_extract(_DATA_URL.format("tst2013", target))
        if split == "train":
            dl_dir_src = dl_manager.download_and_extract(_DATA_URL.format(split, source))
            dl_dir_tar = dl_manager.download_and_extract(_DATA_URL.format(split, target))

        files[split] = {"source_file": dl_dir_src, "target_file": dl_dir_tar}

    return [
        datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs=files["train"]),
        datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs=files["dev"]),
        datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs=files["test"]),
    ]

Thanks for reporting, @rin2401 .

You are right. We are investigating to fix it.

Sign up or log in to comment