|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.AbstractCollinsHeadFinder
edu.stanford.nlp.trees.CollinsHeadFinder
edu.stanford.nlp.trees.SemanticHeadFinder
public class SemanticHeadFinder
Implements a 'semantic head' variant of the the HeadFinder found in Michael Collins' 1999 thesis. This version chooses the semantic head verb rather than the verb form for cases with verbs. Should remember auxiliaries to differentiate past and passive, though. Except: we've added a head rule for NX (returns rightmost), whereas no rule for the head of NX is found in any of the versions of Collins' head table that we have (did he perhaps use the NP rules for NX?
Field Summary |
---|
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder |
---|
defaultRule, nonTerminalInfo, tlp |
Constructor Summary | |
---|---|
SemanticHeadFinder()
|
|
SemanticHeadFinder(TreebankLanguagePack tlp)
|
Method Summary | |
---|---|
protected Tree |
determineNonTrivialHead(Tree t)
Determine which daughter of the current parse tree is the head. |
Methods inherited from class edu.stanford.nlp.trees.CollinsHeadFinder |
---|
postOperationFix |
Methods inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder |
---|
determineHead, findMarkedHead, main, traverseLocate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SemanticHeadFinder()
public SemanticHeadFinder(TreebankLanguagePack tlp)
Method Detail |
---|
protected Tree determineNonTrivialHead(Tree t)
determineNonTrivialHead
in class AbstractCollinsHeadFinder
t
- The parse tree to examine the daughters of.
This is assumed to never be a leaf
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |