class_docstr: Minimal grammatical and ungrammatical pairs of 67 linguistic paradigms.
class_docstr_tok: ["Minimal","grammatical","and","ungrammatical","pairs","of","67","linguistic","paradigms","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepath):
      """Yields examples."""
      with tf.io.gfile.GFile(filepath, "rb") as f:
          for line in f:
              line_dict = json.loads(line)
              id_ = line_dict["UID"] + "_" + line_dict["pairID"]
              feats = {
                  "sentence_good": line_dict["sentence_good"],
                  "sentence_bad": line_dict["sentence_bad"],
                  "field": line_dict["field"],
                  "linguistics_term": line_dict["linguistics_term"],
                  "UID": line_dict["UID"],
                  "simple_LM_method": line_dict["simple_LM_method"],
                  "one_prefix_method": line_dict["one_prefix_method"],
                  "two_prefix_method": line_dict["two_prefix_method"],
                  "lexically_identical": line_dict[
                      "lexically_identical"
                  ],
                  "pair_id": line_dict["pairID"],
              }
              yield id_, feats
  
file_path: datasets/tensorflow_datasets/datasets/blimp/blimp_dataset_builder.py
imports: from __future__ import annotations
  import json
  import numpy
  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(filepath) without return types