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

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

public class TigerHeadFinder
extends AbstractCollinsHeadFinder

HeadFinder for the Tiger Treebank. Adapted from CollinsHeadFinder and the NegraHeadFinder

Author:
Anna Rafferty
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
defaultRule, nonTerminalInfo, tlp
 
Constructor Summary
TigerHeadFinder()
           
TigerHeadFinder(TreebankLanguagePack tlp)
           
 
Method Summary
 java.lang.String basicCategory(java.lang.String category)
           
protected  Tree determineNonTrivialHead(Tree t, Tree parent)
          Called by determineHead and may be overridden in subclasses if special treatment is necessary for particular categories.
protected  Tree findMarkedHead(Tree[] kids)
           
 boolean isLabelAnnotationIntroducingCharacter(char ch)
          Say whether this character is an annotation introducing character.
static HeadFinder tigerSemanticHeadFinder()
          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, findMarkedHead, postOperationFix, setCategoriesToAvoid, traverseLocate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TigerHeadFinder

public TigerHeadFinder()

TigerHeadFinder

public TigerHeadFinder(TreebankLanguagePack tlp)
Method Detail

tigerSemanticHeadFinder

public static HeadFinder tigerSemanticHeadFinder()
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)

basicCategory

public java.lang.String basicCategory(java.lang.String category)

isLabelAnnotationIntroducingCharacter

public boolean isLabelAnnotationIntroducingCharacter(char ch)
Say whether this character is an annotation introducing character.

Parameters:
ch - The character to check
Returns:
Whether it is an annotation introducing character

determineNonTrivialHead

protected Tree determineNonTrivialHead(Tree t,
                                       Tree parent)
Called by determineHead and may be overridden in subclasses if special treatment is necessary for particular categories.

Overrides:
determineNonTrivialHead in class AbstractCollinsHeadFinder


Stanford NLP Group