class_docstr: Encoder based on a user-supplied vocabulary (file or list).
code: def decode(self, ids, strip_eos=False, strip_padding=False):
      if strip_padding and self.pad() in list(ids):
          pad_pos = list(ids).index(self.pad())
          ids = ids[:pad_pos]
      if strip_eos and self.eos() in list(ids):
          eos_pos = list(ids).index(self.eos())
          ids = ids[:eos_pos]
      return " ".join(self.decode_list(ids))
  
imports: import re
  import six
label_desc: Use image node_id 3 for calling the TokenTextEncoder obj's underlying member method code with example usage: obj.decode(ids, strip_eos, strip_padding) and returns: str