アプリケーションの前半で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でこれらの関係を回避する理由を説明してください。
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 に答える