public class NegraHeadFinder extends AbstractCollinsHeadFinder
defaultLeftRule, defaultRightRule, defaultRule, nonTerminalInfo, tlp| Constructor and Description |
|---|
NegraHeadFinder() |
NegraHeadFinder(TreebankLanguagePack tlp) |
| Modifier and Type | Method and Description |
|---|---|
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 |
negraSemanticHeadFinder()
Vends a "semantic" NegraHeadFinder---one that disprefers modal/auxiliary verbs as the heads of S or VP.
|
determineHead, determineHead, findMarkedHead, makesCopulaHead, postOperationFix, traverseLocatepublic NegraHeadFinder()
public NegraHeadFinder(TreebankLanguagePack tlp)
public static HeadFinder negraSemanticHeadFinder()
public java.lang.String basicCategory(java.lang.String category)
public boolean isLabelAnnotationIntroducingCharacter(char ch)
ch - The character to checkprotected Tree determineNonTrivialHead(Tree t, Tree parent)
determineNonTrivialHead in class AbstractCollinsHeadFindert - The tre to determine the head daughter ofparent - The parent of t (or may be null)