class_docstr: `FeatureConnector` for text, encoding to integers with a `TextEncoder`.
docstr: Conversion string => encoded list[int].
docstr_tok: ["Conversion","string","=",">","encoded","list","[","int","]","."]
code: def str2ints(self, str_value):
      """Conversion string => encoded list[int]."""
      if not self._encoder:
          raise ValueError(
              "Text.str2ints is not available because encoder hasn't been defined."
          )
      return self._encoder.encode(str_value)
  
imports: import html
  import os
  import textwrap
  from typing import Union
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.core.deprecated import text
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.features import tensor_feature
  from tensorflow_datasets.core.proto import feature_pb2
  from tensorflow_datasets.core.utils import type_utils
label_desc: Use image node_id 6 for calling the Text obj's underlying member method code with example usage: obj.str2ints(str_value) and returns: self