问题一
pyltp RuntimeError: incompatible native format - size of long
出现这个问题是因为3.4.0 版本 SRL模型 pisrl.model 如在windows系统下不可用,需要重新下载支持windows的语义角色标注模型。链接: http://ltp.ai/download.html.
文件夹中的pisrl.model不可用,需要使用pisrl_win.model
问题2
Boost.Python.ArgumentError: Python argument types in
SementicRoleLabeller.label(SementicRoleLabeller, VectorOfString, VectorOfString, VectorOfString, VectorOfParseResult)
did not match C++ signature:
参考https://www.pianshen.com/article/4056