class_docstr: Base class for translation problems.
class_docstr_tok: ["Base","class","for","translation","problems","."]
docstr: Get vocab for distill problems.
docstr_tok: ["Get","vocab","for","distill","problems","."]
code: def get_or_create_vocab(self, data_dir, tmp_dir, force_get=False):
      """Get vocab for distill problems."""
      # We assume that vocab file is present in data_dir directory where the
      # data generated will be stored.
      vocab_filepath = os.path.join(data_dir, self.vocab_filename)
      encoder = text_encoder.SubwordTextEncoder(vocab_filepath)
      return encoder
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import os
  import tarfile
  import zipfile
  from tensor2tensor.data_generators import cleaner_en_xx
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import bleu_hook
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import mlperf_log
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the TranslateDistillProblem obj's underlying member method code with example usage: obj.get_or_create_vocab(data_dir, tmp_dir, force_get) and returns: encoder