class_docstr: Gigaword summarization dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(
      self, src_path=None, tgt_path=None, replace_unk=None
  ):
      """Yields examples."""
      with tf.io.gfile.GFile(src_path) as f_d, tf.io.gfile.GFile(
          tgt_path
      ) as f_s:
          for i, (doc_text, sum_text) in enumerate(zip(f_d, f_s)):
              if replace_unk:
                  yield i, {
                      _DOCUMENT: doc_text.strip().replace(
                          "<unk>", "UNK"
                      ),
                      _SUMMARY: sum_text.strip().replace(
                          "<unk>", "UNK"
                      ),
                  }
              else:
                  yield i, {
                      _DOCUMENT: doc_text.strip(),
                      _SUMMARY: sum_text.strip(),
                  }
  
file_path: datasets/tensorflow_datasets/summarization/gigaword.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 Gigaword obj's underlying member method code with example usage: obj._generate_examples(src_path, tgt_path, replace_unk) without return types