class_docstr: Base class for converting from ints to/from human readable strings.
docstr: Transform a human-readable string into a sequence of int ids.
  
  The ids should be in the range [num_reserved_ids, vocab_size). Ids [0,
  num_reserved_ids) are reserved.
  
  EOS is not appended.
  
  Args:
  s: human-readable string to be converted.
  
  Returns:
  ids: list of integers
code: def encode(self, s):
      """Transform a human-readable string into a sequence of int ids.
  
      The ids should be in the range [num_reserved_ids, vocab_size). Ids [0,
      num_reserved_ids) are reserved.
  
      EOS is not appended.
  
      Args:
      s: human-readable string to be converted.
  
      Returns:
      ids: list of integers
      """
      return [int(w) + self._num_reserved_ids for w in s.split()]
  
imports: import re
  import six
label_desc: Use image node_id 3 for calling the TextEncoder obj's underlying member method code with example usage: obj.encode(s) and returns: unknown