我正在尝试使用Philippe Remy的OpenIE python包装器来生成以自然语言找到的关系元组的图形表示。但是,每当我运行该程序时,我只会收到一条导致以下错误的回溯消息:
if indexPath.section == 1{
}
我尝试编辑包装器,确保所有jar都在正确的相对目录中,并且正在Windows计算机上通过MinGW运行python命令,但尚未成功。谁能指出我在这里缺少的东西?
以下是python代码:
$ python main.py -f samples.txt
Namespace(filename='samples.txt', generate_graph=False, verbose=False)
Traceback (most recent call last):
File "main.py", line 146, in <module>
exit(main(argv))
File "main.py", line 141, in main
entities_relations = stanford_ie(filename, verbose, generate_graphviz)
File "main.py", line 118, in stanford_ie
assert not java_process.returncode, 'ERROR: Call to stanford_ie exited with a non-zero code status.'
AssertionError: ERROR: Call to stanford_ie exited with a non-zero code status.
感谢您的帮助!