我之前在我的应用程序中使用了stanford-parser-2.0.4-models.jar 。现在我想将我的应用程序移植到stanford-corenlp-3.2.0-models.jar。我在我的应用程序中使用edu.stanford.nlp.trees.EnglishGrammaticalRelations.PURPOSE_CLAUSE_MODIFIER和edu.stanford.nlp.trees.EnglishGrammaticalRelations.COMPLEMENTIZER从语义图边缘识别目的子句修饰符和补语关系,但不幸的是我在最新版本中看不到它们stanford-corenlp-3.2.0-models.jar 的。有人可以建议我如何使用新 jar 来做到这一点,并向我解释在新 jar 中避免这些关系的原因可能是什么。
问问题
237 次
1 回答
0
我可以在 stanford-corenlp-3.2.0-sources.jar 中找到这些详细信息。作为其中的一部分,他们删除了这些关系并将它们视为与现有关系的特殊情况。找到我可以从源代码中看到的以下评论
The "purpose clause modifier" grammatical relation has been discontinued
It is now just seen as a special case of an advcl. A purpose clause
modifier of a VP is a clause headed by "(in order) to" specifying a
purpose. Note: at present we only recognize ones that have
"in order to" or are fronted. Otherwise we can't use our surface representations to
distinguish these from xcomp's. We can also recognize "to" clauses
introduced by "be VBN".
<p/>
Example: <br/>
"He talked to the president in order to secure the account" →
<code>purpcl</code>(talked, secure)
The "complementizer" grammatical relation is a discontinued grammatical relation. A
A complementizer of a clausal complement was the word introducing it.
It only matched "that" or "whether". We've now merged this in with "mark" which plays a similar
role with other clausal modifiers.
<p/>
<p/>
Example: <br/>
"He says that you like to swim" →
<code>complm</code>(like, that)
于 2013-08-16T08:30:06.730 回答