class_docstr: TED talk data set for comparing high and low resource languages.
class_docstr_tok: ["TED","talk","data","set","for","comparing","high","and","low","resource","languages","."]
code: def _split_generators(self, dl_manager):
      dl_dir = dl_manager.download_and_extract(_DATA_URL)
      source, target = self.builder_config.language_pair
  
      data_dir = os.path.join(
          dl_dir, "datasets", "%s_to_%s" % (source, target)
      )
  
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "source_file": os.path.join(
                      data_dir,
                      "{}.train".format(source.replace("_", "-")),
                  ),
                  "target_file": os.path.join(
                      data_dir, "{}.train".format(target)
                  ),
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "source_file": os.path.join(
                      data_dir, "{}.dev".format(source.split("_")[0])
                  ),
                  "target_file": os.path.join(
                      data_dir, "{}.dev".format(target)
                  ),
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.TEST,
              gen_kwargs={
                  "source_file": os.path.join(
                      data_dir, "{}.test".format(source.split("_")[0])
                  ),
                  "target_file": os.path.join(
                      data_dir, "{}.test".format(target)
                  ),
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/datasets/ted_hrlr_translate/ted_hrlr_translate_dataset_builder.py
imports: import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list