code: def str2ints(self, str_value):
      
      if not self._encoder:
        raise ValueError(
            "Text.str2ints is not available because encoder hasn't been defined.")
      return self._encoder.encode(str_value)
docs: Conversion string => encoded list[int].