code: def __init__(
      self, vocab: Vocab, segmenter: Segmenter = Segmenter.char
  ):
      self.vocab = vocab
      self.segmenter = (
          segmenter.value
          if isinstance(segmenter, Segmenter)
          else segmenter
      )
      self.pkuseg_seg = None
      self.jieba_seg = None
      if self.segmenter not in Segmenter.values():
          warn_msg = Warnings.W103.format(
              lang="Chinese",
              segmenter=self.segmenter,
              supported=", ".join(Segmenter.values()),
              default="'char' (character segmentation)",
          )
          warnings.warn(warn_msg)
          self.segmenter = Segmenter.char
      if self.segmenter == Segmenter.jieba:
          self.jieba_seg = try_jieba_import()
  
imports: import tempfile
  import warnings
  from enum import Enum
  from pathlib import Path
  from typing import Any, Callable, Dict, Iterable, List, Optional
  import srsly
  from ...None import util
  from ...errors import Errors, Warnings
  from ...language import BaseDefaults, Language
  from ...scorer import Scorer
  from ...tokens import Doc
  from ...training import Example, validate_examples
  from ...util import DummyTokenizer, load_config_from_str, registry
  from ...vocab import Vocab
  from .lex_attrs import LEX_ATTRS
  from .stop_words import STOP_WORDS
label_desc: Use image node_id 1 to create a new ChineseTokenizer object from inherited base classes: DummyTokenizer with example: obj = ChineseTokenizer(vocab, segmenter)