class_docstr: This masks out tokens according to the given tokenizer.
  
  The masked variables are
  
  output_type : "string" (default) or "token_ids"
code: def _update_s_cache(self, s):
      if self._s != s:
          self._s = s
          tokens, token_ids = self.token_segments(s)
          self._tokenized_s = np.array(token_ids)
          self._segments_s = np.array(tokens)
  
imports: import math
  import re
  import numpy
  from .._serializable import Deserializer, Serializer
  from ..utils import safe_isinstance
  from ..utils.transformers import SENTENCEPIECE_TOKENIZERS, getattr_silent, parse_prefix_suffix_for_tokenizer
  from ._masker import Masker
label_desc: Use image node_id 6 for calling the Text obj's underlying member method code with example usage: obj._update_s_cache(s) without return types