class_docstr: Multi-News dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path=None):
      """Yields examples."""
      with tf.io.gfile.GFile(
          os.path.join(path + ".src")
      ) as src_f, tf.io.gfile.GFile(
          os.path.join(path + ".tgt")
      ) as tgt_f:
          for i, (src_line, tgt_line) in enumerate(zip(src_f, tgt_f)):
              yield i, {
                  # In original file, each line has one example and natural newline
                  # tokens "\n" are being replaced with "NEWLINE_CHAR". Here restore
                  # the natural newline token to avoid special vocab "NEWLINE_CHAR".
                  _DOCUMENT: src_line.strip().replace(
                      "NEWLINE_CHAR", "\n"
                  ),
                  # Remove the starting token "- " for every target sequence.
                  _SUMMARY: tgt_line.strip().lstrip("- "),
              }
  
file_path: datasets/tensorflow_datasets/summarization/multi_news.py
imports: import os
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the MultiNews obj's underlying member method code with example usage: obj._generate_examples(path) without return types