mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +03:00
Revert back to "default" as default for pkuseg_user_dict
This commit is contained in:
parent
5d19dfc9d3
commit
187234648c
|
@ -81,9 +81,11 @@ class ChineseTokenizer(DummyTokenizer):
|
|||
*,
|
||||
nlp: Optional[Language] = None,
|
||||
pkuseg_model: Optional[str] = None,
|
||||
pkuseg_user_dict: str = "default",
|
||||
pkuseg_user_dict: Optional[str] = "default",
|
||||
):
|
||||
if self.segmenter == Segmenter.pkuseg:
|
||||
if pkuseg_user_dict is None:
|
||||
pkuseg_user_dict = pkuseg_model
|
||||
self.pkuseg_seg = try_pkuseg_import(
|
||||
pkuseg_model=pkuseg_model, pkuseg_user_dict=pkuseg_user_dict,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user