class_docstr: DatasetBuilder for wiki_table_text dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path):
      """Yields examples."""
      with epath.Path(path).open() as f:
          for i, example_line in enumerate(f):
              _, headers, values, text = example_line.split("\t")
              headers = [
                  h.replace("_$$_", " ") for h in headers.split("_||_")
              ]
              values = [
                  v.replace("_$$_", " ") for v in values.split("_||_")
              ]
              # The tables only have one row and we specify it because the dataset
              # follows a standarized table format.
              table = []
              for header_i, value_i in zip(headers, values):
                  table.append(
                      {
                          "column_header": header_i,
                          "row_number": 1,
                          "content": value_i,
                      }
                  )
              text = text.replace("_$$_", " ").replace(" .", "")
              yield i, {
                  "input_text": {"table": table},
                  "target_text": text,
              }
  
file_path: datasets/tensorflow_datasets/structured/wiki_table_text/wiki_table_text.py
imports: from __future__ import annotations
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the WikiTableText obj's underlying member method code with example usage: obj._generate_examples(path) without return types