class_docstr: This masks out tokens according to the given tokenizer.
  
  The masked variables are
  
  output_type : "string" (default) or "token_ids"
docstr: Load a Text masker from a file stream.
          
code: def load(cls, in_file, instantiate=True):
      """Load a Text masker from a file stream."""
      if instantiate:
          return cls._instantiated_load(in_file)
  
      kwargs = super().load(in_file, instantiate=False)
      with Deserializer(
          in_file, "shap.maskers.Text", min_version=0, max_version=0
      ) as s:
          kwargs["tokenizer"] = s.load("tokenizer")
          kwargs["mask_token"] = s.load("mask_token")
          kwargs["collapse_mask_token"] = s.load("collapse_mask_token")
          kwargs["output_type"] = s.load("output_type")
      return kwargs
  
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 12 for calling the Text obj's underlying member method code with example usage: obj.load(cls, in_file, instantiate) and returns: kwargs, cls