edu.stanford.nlp.trees.international.tuebadz
Class TueBaDZHeadFinder

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

public class TueBaDZHeadFinder
extends AbstractCollinsHeadFinder

A HeadFinder for TueBa-D/Z. First version. Notes: EN_ADD seems to be replaced by ENADD in 2008 ACL German. Added as alternant by CDM.

Author:
Roger Levy (rog@csli.stanford.edu)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
defaultRule, nonTerminalInfo, tlp
 
Constructor Summary
TueBaDZHeadFinder()
           
 
Method Summary
 String basicCategory(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 t)
          A way for subclasses for corpora with explicit head markings to return the explicitly marked head
 boolean isLabelAnnotationIntroducingCharacter(char ch)
          Say whether this character is an annotation introducing character.
 
Methods inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
determineHead, determineHead, postOperationFix, setCategoriesToAvoid, traverseLocate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TueBaDZHeadFinder

public TueBaDZHeadFinder()
Method Detail

findMarkedHead

protected Tree findMarkedHead(Tree t)
Description copied from class: AbstractCollinsHeadFinder
A way for subclasses for corpora with explicit head markings to return the explicitly marked head

Overrides:
findMarkedHead in class AbstractCollinsHeadFinder
Parameters:
t - a tree to find the head of
Returns:
the marked head-- null if no marked head

basicCategory

public String basicCategory(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