yongyuan923
yongyuan923
现在使用的版本是: win7 、64位、Python3.6、pyltp0.1.9.1、LTP模型3.4.0。 现在的文档中是加载模型3.3.1中语义标注的方法(加载的是SRL目录形式)。 请问,怎样加载模型3.4.0的SRL文件,而不是加载目录? error: cannot open model:F:/LTP_cs/ltp_data/pisrl.model/srl.model 谢谢!感激不尽。@endyul
# 语义标注出现错误: [dynet] random seed: 2633395616 [dynet] allocating memory: 2000MB [dynet] memory allocation done. Traceback (most recent call last): File "C:\Users\Administrator\Desktop\222.py", line 74, in roles = role_label(words,tags,netags,arcs) File "C:\Users\Administrator\Desktop\222.py", line...
我现在解决了这个问题: 我是把语义角色标注中的这句roles = labeller.label(words, postags, netags, arcs) # 语义角色标注 改为:roles = labeller.label(words, postags,arcs)。 然后程序就能输出正确的运行结果。 
但是我在这里面加入外部词典,就陷入了死循环。上面的回复是在没有加入外部词典的情况下运行的。
非常感谢您的回复。 下次会注意了。