class_docstr: Yelp dataset.
code: def doc_generator(self, yelp_dir, dataset, include_label=False):
      file_path = os.path.join(yelp_dir, dataset + ".csv")
      with tf.gfile.Open(file_path) as yelp_f:
          lines = yelp_f.readlines()
          for line in lines:
              label = line[1]
              doc = line[5:-2].strip()
              if include_label:
                  yield doc, label
              else:
                  yield doc
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tarfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the SentimentYelpFull obj's underlying member method code with example usage: obj.doc_generator(yelp_dir, dataset, include_label) without return types