class_docstr: Yelp Polarity reviews dataset.
docstr: Generate Yelp examples.
docstr_tok: ["Generate","Yelp","examples","."]
code: def _generate_examples(self, filepath):
      """Generate Yelp examples."""
      with epath.Path(filepath).open() as f:
          for line_id, line in enumerate(f):
              # The format of the line is:
              # "1", "The text of the review."
              yield line_id, {
                  "text": line[5:-2].strip(),
                  "label": line[1],
              }
  
file_path: datasets/tensorflow_datasets/text/yelp_polarity.py
imports: import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the YelpPolarityReviews obj's underlying member method code with example usage: obj._generate_examples(filepath) without return types