code: def __init__(self, text, token_pattern=DEFAULT_TOKEN_PATTERN):
      # type: (str, str) -> None
      self.text = text
      self.split = SplitResult.fromtext(text, token_pattern)
      self._vocab = None
  
imports: from __future__ import absolute_import
  import re
  import math
  from typing import List, Tuple, Union, Optional
  import numpy
  from sklearn.utils import check_random_state
  from eli5.utils import indices_to_bool_mask, vstack
label_desc: Use image node_id 1 to create a new TokenizedText object from inherited base classes: object with example: obj = TokenizedText(text, token_pattern)