(self, s)
return [int(w) + self._num_reserved_ids for w in s.split()]
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
Transform a human-readable string into a sequence of int IDs.
Transform a human - readable string into a sequence of int IDs .
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()]
def encode ( self , s ) : return [ int ( w ) + self . _num_reserved_ids for w in s . split ( ) ]