class_docstr: LJSpeech dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, directory):
      """Yields examples."""
      metadata_path = os.path.join(
          directory, "LJSpeech-1.1", "metadata.csv"
      )
      with epath.Path(metadata_path).open() as f:
          for line in f:
              line = line.strip()
              key, transcript, transcript_normalized = line.split("|")
              wav_path = os.path.join(
                  directory, "LJSpeech-1.1", "wavs", "%s.wav" % key
              )
              example = {
                  "id": key,
                  "speech": wav_path,
                  "text": transcript,
                  "text_normalized": transcript_normalized,
              }
              yield key, example
  
file_path: datasets/tensorflow_datasets/datasets/ljspeech/ljspeech_dataset_builder.py
imports: from __future__ import annotations
  import os
  from etils import epath
  import numpy
  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(directory) without return types