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

load pisrl.model RunTimeError #5

Open
SilenceWinter opened this issue Nov 16, 2018 · 4 comments
Open

load pisrl.model RunTimeError #5

SilenceWinter opened this issue Nov 16, 2018 · 4 comments

Comments

@SilenceWinter
Copy link

您好楼主
遇到问题 self.labeller.load(os.path.join(LTP_DIR, 'pisrl.model'))
RuntimeError: incompatible native format - size of long
能否描述下你运行成功的软件环境? 操作系统,python版本,pyltp版本, ltpdata版本。
我看过这里的Issue,有提到可能是ltpdata版本问题。
我用的win10, python3.6.5, pyltp0.2.1 , ltpdata v3.4.0

@fighting41love
Copy link

Same question. What is the version of pyltp and ltp_data?
Thanks!

@Xin-Deng
Copy link

我也是一样的问题 要哭了

@Xin-Deng
Copy link

刚刚百度了一下 解决方案:3.4.0 版本 SRL模型 pisrl.model 如在windows系统下不可用
因此http://ltp.ai/download.html下载了可用模型“pisrl_win.model”。下载好后 放进ltp_data目录下面就可以运行了

@Fheon
Copy link

Fheon commented Mar 26, 2020

用windows的需要到http://ltp.ai/download.html下载pisrl_win.model并保存到ltp那个文件夹,然后将语句改成self.labeller.load(os.path.join(LTP_DIR, 'pisrl_win.model'))

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

4 participants