Skip to content
New issue

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

Argument types are supported! #18

Open
eve-sjz opened this issue Sep 9, 2022 · 2 comments
Open

Argument types are supported! #18

eve-sjz opened this issue Sep 9, 2022 · 2 comments

Comments

@eve-sjz
Copy link

eve-sjz commented Sep 9, 2022

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:

运行之后会出现如上报错pyltp == 0.4.0, itp_data 3.4.0

@WYBupup
Copy link

WYBupup commented Dec 7, 2023

运行sentence_parser.py出现同样的问题,把model_path放到构造函数里面之后可以运行,但是SementicRoleLabeller出问题,报错如下
image

@WYBupup
Copy link

WYBupup commented Dec 7, 2023

请问,解决问题了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants