class_docstr: Enwiki8, with examples up to 65,536 characters long.
class_docstr_tok: ["Enwiki8",",","with","examples","up","to","65,536","characters","long","."]
code: def generate_encoded_samples(self, data_dir, tmp_dir, dataset_split):
      generator = self.generate_samples(
          data_dir, tmp_dir, dataset_split
      )
      vocab = self.get_or_create_vocab(data_dir, tmp_dir)
      for sample in generator:
          sample["targets"] = vocab.encode(sample["targets"])
          yield sample
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import zipfile
  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 8 for calling the Enwik8L65k obj's underlying member method code with example usage: obj.generate_encoded_samples(data_dir, tmp_dir, dataset_split) without return types