class_docstr: DatasetBuilder for wiki_table_questions dataset.
class_docstr_tok: ["DatasetBuilder","for","wiki_table_questions","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, examples_path, tables_path):
      """Yields examples."""
      with epath.Path(examples_path).open() as examples:
          for example in csv.DictReader(examples, delimiter="\t"):
              table = []
              with epath.Path(
                  os.path.join(tables_path, example["context"])
              ).open() as table_csv:
                  for row_number, row in enumerate(
                      csv.DictReader(
                          table_csv,
                          delimiter=",",
                          quotechar='"',
                          escapechar="\\",
                      )
                  ):
                      for header, value in row.items():
                          table.append(
                              {
                                  "column_header": header,
                                  "row_number": row_number,
                                  "content": value,
                              }
                          )
              yield example["id"], {
                  "input_text": {
                      "table": table,
                      "context": example["utterance"],
                  },
                  "target_text": example["targetValue"],
              }
  
file_path: datasets/tensorflow_datasets/structured/wiki_table_questions/wiki_table_questions.py
imports: from __future__ import annotations
  import csv
  import os
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the WikiTableQuestions obj's underlying member method code with example usage: obj._generate_examples(examples_path, tables_path) without return types