Open SilenceWinter opened 5 years ago
Same question. What is the version of pyltp and ltp_data? Thanks!
我也是一样的问题 要哭了
刚刚百度了一下 解决方案:3.4.0 版本 SRL模型 pisrl.model 如在windows系统下不可用 因此http://ltp.ai/download.html下载了可用模型“pisrl_win.model”。下载好后 放进ltp_data目录下面就可以运行了
用windows的需要到http://ltp.ai/download.html下载pisrl_win.model并保存到ltp那个文件夹,然后将语句改成self.labeller.load(os.path.join(LTP_DIR, 'pisrl_win.model'))
您好楼主 遇到问题 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