如何使用OpenIE选项?

时间:2019-06-14 07:11:25

标签: stanford-nlp

我无法使用Openie选项, 我正在使用此命令

 java -mx3g -resolve_coref -cp "*" edu.stanford.nlp.naturalli.OpenIE

我得到的错误是

Unrecognized option: -resolve_coref
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

此外,我尝试更改代码中的默认值,就像这样-

  @ArgumentParser.Option(name="resolve_coref", gloss="If true, resolve pronouns to their canonical mention")
  private boolean resolveCoref = true;

与此有关,我没有收到错误消息。  但是输出不变 例如。艾莉亚(Arya)是个好女孩,她喜欢苹果。

The tuples extracted are -
1.0 arya is good girl
1.0 she likes apple
1.0 arya is good
1.0 arya is girl

我想要的是她被元组中的arya取代。 还有其他可以使用的方法吗?

0 个答案:

没有答案
相关问题