public abstract class HeadFinderBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HeadFinderBase.HeadSearchDirection |
Modifier and Type | Field and Description |
---|---|
protected edu.illinois.cs.cogcomp.core.datastructures.Pair<HeadFinderBase.HeadSearchDirection,String[]> |
defaultRule |
Constructor and Description |
---|
HeadFinderBase() |
Modifier and Type | Method and Description |
---|---|
protected Constituent |
findHead(Constituent parseNode) |
protected int |
fixHeadChildHacks(int headChildId,
Constituent node) |
protected static String |
getChildLabel(Constituent tree,
int headCandidate) |
Constituent |
getHeadChild(Constituent parseNode)
Get the head node of a constituent belonging to a parse tree.
|
Constituent |
getHeadWord(Constituent tree) |
int |
getHeadWordPosition(Constituent subTree) |
abstract List<edu.illinois.cs.cogcomp.core.datastructures.Pair<HeadFinderBase.HeadSearchDirection,String[]>> |
getNonterminalHeadInformation(String nonTerminal)
Return information about how the head is to be computed, given the
non-terminal.
|
protected Constituent |
getPredefinedHead(Constituent treeNode) |
protected edu.illinois.cs.cogcomp.core.datastructures.Pair<HeadFinderBase.HeadSearchDirection,String[]> defaultRule
protected static String getChildLabel(Constituent tree, int headCandidate)
public Constituent getHeadChild(Constituent parseNode)
parseNode
- A node from the parse tree viewpublic Constituent getHeadWord(Constituent tree)
public int getHeadWordPosition(Constituent subTree)
protected Constituent getPredefinedHead(Constituent treeNode)
treeNode
- protected Constituent findHead(Constituent parseNode)
parseNode
- protected int fixHeadChildHacks(int headChildId, Constituent node)
headChild
- tree
- public abstract List<edu.illinois.cs.cogcomp.core.datastructures.Pair<HeadFinderBase.HeadSearchDirection,String[]>> getNonterminalHeadInformation(String nonTerminal)
nonTerminal
- Copyright © 2015. All rights reserved.