class_docstr: Abstract base clase which all transduction problems inherit from.
    
class_docstr_tok: ["Abstract","base","clase","which","all","transduction","problems","inherit","from","."]
code: def get_or_create_vocab(self, data_dir, tmp_dir, force_get=False):
      vocab_filename = os.path.join(data_dir, self.vocab_filename)
      if not tf.gfile.Exists(vocab_filename):
          encoder = text_encoder.TokenTextEncoder(
              None, vocab_list=sorted(self.vocab)
          )
          encoder.store_to_file(vocab_filename)
      else:
          encoder = text_encoder.TokenTextEncoder(
              vocab_filename, replace_oov=self.oov_token
          )
      return encoder
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import random
  from six.moves import range
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 11 for calling the TransductionProblem obj's underlying member method code with example usage: obj.get_or_create_vocab(data_dir, tmp_dir, force_get) and returns: encoder