  def test_zh_tokenizer_serialize_jieba(zh_tokenizer_jieba):
      zh_tokenizer_serialize(zh_tokenizer_jieba)
  
  
  def test_zh_tokenizer_serialize_pkuseg(zh_tokenizer_pkuseg):
      zh_tokenizer_serialize(zh_tokenizer_pkuseg)
  
  
  @pytest.mark.slow
  def test_zh_tokenizer_serialize_pkuseg_with_processors(zh_tokenizer_pkuseg):
      nlp = Chinese(
          meta={
              "tokenizer": {
 
</s> remove                     "use_jieba": False,
                    "use_pkuseg": True,
 </s> add                     "segmenter": "pkuseg", </s> remove         nlp = Chinese(meta={"tokenizer": {"config": {"use_jieba": False}}})
 </s> add         nlp = Chinese() </s> remove     nlp = Chinese(meta={"tokenizer": {"config": {"use_jieba": False}}})
 </s> add     nlp = Chinese() </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 def test_zh_tokenizer_pkuseg_user_dict(zh_tokenizer_pkuseg):
 </s> add def test_zh_tokenizer_pkuseg_user_dict(zh_tokenizer_pkuseg, zh_tokenizer_char):
  def test_zh_tokenizer_serialize_jieba(zh_tokenizer_jieba):
      zh_tokenizer_serialize(zh_tokenizer_jieba)
  
  




  @pytest.mark.slow
  def test_zh_tokenizer_serialize_pkuseg_with_processors(zh_tokenizer_pkuseg):
      nlp = Chinese(
          meta={
              "tokenizer": {
keep keep keep keep 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/tests/lang/zh/test_serialize.py