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