TextGrapher
TextGrapher copied to clipboard
pycharm运行错误
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)
我也遇到了一样的问题!请问您解决了吗?
这条报错就是告诉了你segmentor怎么用,按照上面的用法用就行了,不需要先创建实体,再load
报错都提示你怎么用了呀
这条报错就是告诉了你segmentor怎么用,按照上面的用法用就行了,不需要先创建实体,再load
self.segmentor = Segmentor(model_path="./ltp_data/cws.model", lexicon_path= None, force_lexicon_path = None) 我试了这样也不行