edu.stanford.nlp.trees.international.negra
Class NegraHeadFinder

java.lang.Object
  extended by edu.stanford.nlp.trees.AbstractCollinsHeadFinder
      extended by edu.stanford.nlp.trees.international.negra.NegraHeadFinder
All Implemented Interfaces:
HeadFinder, Serializable

public class NegraHeadFinder
extends AbstractCollinsHeadFinder

HeadFinder for the Negra Treebank. Adapted from CollinsHeadFinder.

Author:
Roger Levy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
defaultRule, nonTerminalInfo, tlp
 
Constructor Summary
NegraHeadFinder()
           
NegraHeadFinder(TreebankLanguagePack tlp)
           
 
Method Summary
protected  Tree findMarkedHead(Tree[] kids)
           
static HeadFinder negraSemanticHeadFinder()
          Vends a "semantic" NegraHeadFinder---one that disprefers modal/auxiliary verbs as the heads of S or VP.
 
Methods inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
determineHead, determineHead, determineNonTrivialHead, findMarkedHead, postOperationFix, traverseLocate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegraHeadFinder

public NegraHeadFinder()

NegraHeadFinder

public NegraHeadFinder(TreebankLanguagePack tlp)
Method Detail

negraSemanticHeadFinder

public static HeadFinder negraSemanticHeadFinder()
Vends a "semantic" NegraHeadFinder---one that disprefers modal/auxiliary verbs as the heads of S or VP.

Returns:
a NegraHeadFinder that uses a "semantic" head-finding rule for the S category.

findMarkedHead

protected Tree findMarkedHead(Tree[] kids)


Stanford NLP Group