public class RightHeadFinder extends java.lang.Object implements HeadFinder
Constructor and Description |
---|
RightHeadFinder() |
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 Tree determineHead(Tree t)
HeadFinder
determineHead
in interface HeadFinder
t
- The parse tree to examine the daughters ofpublic 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