      W101 = ("Skipping `Doc` custom extension '{name}' while merging docs.")
      W102 = ("Skipping unsupported user data '{key}: {value}' while merging docs.")
  
  
  @add_codes
  class Errors:
      E001 = ("No component '{name}' found in pipeline. Available names: {opts}")
 
</s> remove             if self.pkuseg_seg:
 </s> add             if self.segmenter == "pkuseg": </s> remove                 if self.use_pkuseg:
 </s> add                 if self.segmenter == "pkuseg": </s> remove         self.use_jieba = config.get("use_jieba", cls.use_jieba)
        self.use_pkuseg = config.get("use_pkuseg", cls.use_pkuseg)
        self.require_pkuseg = config.get("require_pkuseg", False)
 </s> add         self.supported_segmenters = ("char", "jieba", "pkuseg")
        self.configure_segmenter(config) </s> remove         self.jieba_seg = try_jieba_import(self.use_jieba)
        self.pkuseg_seg = try_pkuseg_import(
            self.use_pkuseg,
            pkuseg_model=config.get("pkuseg_model", None),
            pkuseg_user_dict=config.get("pkuseg_user_dict", "default"),
        )
 </s> add 
    W103 = ("Unknown {lang} word segmenter '{segmenter}'. Supported "
            "word segmenters: {supported}. Defaulting to {default}.")
    W104 = ("Skipping modifications for '{target}' segmenter. The current "
            "segmenter is '{current}'.")
      W101 = ("Skipping `Doc` custom extension '{name}' while merging docs.")
      W102 = ("Skipping unsupported user data '{key}: {value}' while merging docs.")
    W103 = ("Unknown {lang} word segmenter '{segmenter}'. Supported "
            "word segmenters: {supported}. Defaulting to {default}.")
    W104 = ("Skipping modifications for '{target}' segmenter. The current "
            "segmenter is '{current}'.")
  
  
  @add_codes
  class Errors:
      E001 = ("No component '{name}' found in pipeline. Available names: {opts}")
keep add keep keep keep keep keep
 Refactor Chinese tokenizer configuration (#5736)

* Refactor Chinese tokenizer configuration

Refactor `ChineseTokenizer` configuration so that it uses a single
`segmenter` setting to choose between character segmentation, jieba, and
pkuseg.

* replace `use_jieba`, `use_pkuseg`, `require_pkuseg` with the setting
`segmenter` with the supported values: `char`, `jieba`, `pkuseg`
* make the default segmenter plain character segmentation `char` (no
additional libraries required)

* Fix Chinese serialization test to use char default

* Warn if attempting to customize other segmenter

Add a warning if `Chinese.pkuseg_update_user_dict` is called when
another segmenter is selected. 
spacy/errors.py