              for word in words:
                  self.pkuseg_seg.preprocesser.insert(word.strip(), "")
  
      def _get_config(self):
          config = OrderedDict(
              (
                  ("use_jieba", self.use_jieba),
                  ("use_pkuseg", self.use_pkuseg),
                  ("require_pkuseg", self.require_pkuseg),
              )
          )
          return config
  
      def _set_config(self, config={}):
          self.use_jieba = config.get("use_jieba", False)
          self.use_pkuseg = config.get("use_pkuseg", False)
 
</s> remove         self.use_jieba = config.get("use_jieba", False)
        self.use_pkuseg = config.get("use_pkuseg", False)
        self.require_pkuseg = config.get("require_pkuseg", False)
 </s> add         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  </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         for key in ["use_jieba", "use_pkuseg", "require_pkuseg", "pkuseg_model"]:
 </s> add         for key in ["segmenter", "pkuseg_model", "pkuseg_user_dict"]:
        config = OrderedDict((("segmenter", self.segmenter),))
              for word in words:
                  self.pkuseg_seg.preprocesser.insert(word.strip(), "")
  
      def _get_config(self):
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
        config = OrderedDict((("segmenter", self.segmenter),))
          return config
  
      def _set_config(self, config={}):
          self.use_jieba = config.get("use_jieba", False)
          self.use_pkuseg = config.get("use_pkuseg", False)
keep keep keep keep replace replace replace replace replace replace replace 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/lang/zh/__init__.py