      E999 = ("Unable to merge the `Doc` objects because they do not all share "
              "the same `Vocab`.")
  
  
  @add_codes
  class TempErrors:
      T003 = ("Resizing pretrained Tagger models is not currently supported.")
 
</s> remove                 "Chinese.use_pkuseg is True but no pkuseg model was specified. "
                "Please provide the name of a pretrained model "
 </s> add                 "The Chinese word segmenter is 'pkuseg' but no pkuseg model "
                "was specified. Please provide the name of a pretrained model " </s> remove                 '`Chinese(meta={"tokenizer": {"config": {"pkuseg_model": name_or_path}}}).'
 </s> add                 '`cfg = {"segmenter": "pkuseg", "pkuseg_model": name_or_path}; '
                'nlp = Chinese(meta={"tokenizer": {"config": cfg}})`' </s> remove         elif use_pkuseg:
 </s> add         elif 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)
    E1000 = ("No pkuseg model available. Provide a pkuseg model when "
            "initializing the pipeline: "
            '`cfg = {"segmenter": "pkuseg", "pkuseg_model": name_or_path}; '
            'nlp = Chinese(meta={"tokenizer": {"config": cfg}})`')
      E999 = ("Unable to merge the `Doc` objects because they do not all share "
              "the same `Vocab`.")
    E1000 = ("No pkuseg model available. Provide a pkuseg model when "
            "initializing the pipeline: "
            '`cfg = {"segmenter": "pkuseg", "pkuseg_model": name_or_path}; '
            'nlp = Chinese(meta={"tokenizer": {"config": cfg}})`')
  
  
  @add_codes
  class TempErrors:
      T003 = ("Resizing pretrained Tagger models is not currently supported.")
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