You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkuseg.pkuseg(model_name = "default", user_dict = "default", postag = False)
model_name The path of the used model.
"default". The default mixed-domain model.
"news". The model trained on news domain data.
"web". The model trained on web domain data.
"medicine". The model trained on medicine domain data.
"tourism". The model trained on tourism domain data.
model_path. Load a model from the user-specified path.
user_dict Set up the user dictionary.
"default". Use the default dictionary.
None. No dictionary is used.
dict_path. The path of the user-defined dictionary. Each line only contains one word.
postag POS tagging or not.
False. The default setting. Segmentation without POS tagging.
True. Segmentation with POS tagging.
pkuseg.pkuseg(model_name = "default", user_dict = "default", postag = False)
model_name The path of the used model.
"default". The default mixed-domain model.
"news". The model trained on news domain data.
"web". The model trained on web domain data.
"medicine". The model trained on medicine domain data.
"tourism". The model trained on tourism domain data.
model_path. Load a model from the user-specified path.
user_dict Set up the user dictionary.
"default". Use the default dictionary.
None. No dictionary is used.
dict_path. The path of the user-defined dictionary. Each line only contains one word.
postag POS tagging or not.
False. The default setting. Segmentation without POS tagging.
True. Segmentation with POS tagging.
如图,我要用到model_name=”web“ 以及 postag=True,我如何自己指定程序用到的postag与预训练模型的路径
The text was updated successfully, but these errors were encountered: