liuhuanyong / EventTriplesExtraction

An experiment and demo-level tool for text information extraction (event-triples extraction), which can be a route to the event chain and topic graph, 基于依存句法与语义角色标注的事件三元组抽取,可用于文本理解如文档主题链,事件线等应用。
912 stars 220 forks source link

load pisrl.model RunTimeError #5

Open SilenceWinter opened 5 years ago

SilenceWinter commented 5 years ago

您好楼主 遇到问题 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 commented 5 years ago

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

Xin-Deng commented 5 years ago

我也是一样的问题 要哭了

Xin-Deng commented 5 years ago

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

Fheon commented 4 years ago

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