edu.stanford.nlp.trees.international.tuebadz
Class TueBaDZHeadFinder
java.lang.Object
edu.stanford.nlp.trees.AbstractCollinsHeadFinder
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TueBaDZHeadFinder
public TueBaDZHeadFinder()
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