在学python中的pyltp使用方法,模型我都下下来了,python是3.8版本,pyltp是0.4.0版本,ltp-model是3.4.0版本。
在进行分词的时候,为啥会出现错误呀
。如下
segmentor = Segmentor()
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. pyltp.Segmentor(model_path: str, lexicon_path: str = None, force_lexicon_path: str = None)
Invoked with: