class_docstr: Opinosis Opinion Dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path=None):
      """Yields examples."""
      topics_path = os.path.join(path, "topics")
      filenames = tf.io.gfile.listdir(topics_path)
      for filename in filenames:
          file_path = os.path.join(topics_path, filename)
          topic_name = filename.split(".txt")[0]
          with tf.io.gfile.GFile(file_path, "rb") as src_f:
              input_data = src_f.read()
          summaries_path = os.path.join(
              path, "summaries-gold", topic_name
          )
          summary_lst = []
          for summ_filename in sorted(
              tf.io.gfile.listdir(summaries_path)
          ):
              file_path = os.path.join(summaries_path, summ_filename)
              with tf.io.gfile.GFile(file_path, "rb") as tgt_f:
                  data = tgt_f.read().strip()
                  summary_lst.append(data)
          summary_data = summary_lst
          yield filename, {
              _REVIEW_SENTS: input_data,
              _SUMMARIES: summary_data,
          }
  
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 Builder obj's underlying member method code with example usage: obj._generate_examples(path) without return types