new stanford-corelp-3.2.0-models.jar中缺少关系



我在应用程序早期使用了stanford-parser-2.0.04-models.jar。现在,我想将我的应用程序移植到stanford-corelp-3.2.0-models.jar。我在应用程序中使用了edu.stanford.nlp.trees.EnglishGrammaticalRelations.PURPOSE_CLAUSE _MODIFIERedu.stanford.nlp.ttrees.English GrammaticRelations.COMPLEMENTIZER,以识别来自语义图边缘,但不幸的是,我在最新版本的stanford-corelp-3.2.0-models.jar中看不到它们。有人能建议我如何使用新的jar来实现这一点吗?并解释为什么在新的jar中避免这些关系。

我可以在stanford-corelp-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" &rarr;
<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" &rarr;
<code>complm</code>(like, that)

最新更新