public class BinaryHeadFinder extends java.lang.Object implements HeadFinder
Constructor and Description |
---|
BinaryHeadFinder() |
BinaryHeadFinder(HeadFinder fallbackHF) |
Modifier and Type | Method and Description |
---|---|
Tree |
determineHead(Tree t)
Determine which daughter of the current parse tree is the head.
|
Tree |
determineHead(Tree t,
Tree parent)
Determine which daughter of the current parse tree is the head
given the parent of the tree.
|
public BinaryHeadFinder()
public BinaryHeadFinder(HeadFinder fallbackHF)
public Tree determineHead(Tree t)
determineHead
in interface HeadFinder
t
- The parse tree to examine the daughters ofnull
if no head is found.
But maybe it should throw an exception?public Tree determineHead(Tree t, Tree parent)
HeadFinder
determineHead
in interface HeadFinder
t
- The parse tree to examine the daughters ofparent
- The parent of tree t