We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
我也遇到了一样的问题!请问您解决了吗?
Sorry, something went wrong.
这条报错就是告诉了你segmentor怎么用,按照上面的用法用就行了,不需要先创建实体,再load
报错都提示你怎么用了呀
self.segmentor = Segmentor(model_path="./ltp_data/cws.model", lexicon_path= None, force_lexicon_path = None) 我试了这样也不行
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: