      nlp = Chinese(
          meta={
              "tokenizer": {
                  "config": {
                      "use_jieba": False,
                      "use_pkuseg": True,
                      "pkuseg_model": "medicine",
                  }
              }
          }
      )
 
</s> remove def test_zh_tokenizer_serialize_pkuseg(zh_tokenizer_pkuseg):
    zh_tokenizer_serialize(zh_tokenizer_pkuseg)


 </s> add  </s> remove         config={"pkuseg_model": "default", "use_jieba": False, "use_pkuseg": True}
 </s> add         config={"pkuseg_model": "default", "segmenter": "pkuseg"} </s> remove     return get_lang_class("zh").Defaults.create_tokenizer(
        config={"use_jieba": False, "use_pkuseg": False}
    )
 </s> add     return get_lang_class("zh").Defaults.create_tokenizer() </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()
                    "segmenter": "pkuseg",
      nlp = Chinese(
          meta={
              "tokenizer": {
                  "config": {
                    "segmenter": "pkuseg",
                    "segmenter": "pkuseg",
                      "pkuseg_model": "medicine",
                  }
              }
          }
      )
keep keep keep keep 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