public interface HeadFinder
extends java.io.Serializable
| 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.
|
Tree determineHead(Tree t)
t - The parse tree to examine the daughters ofjava.lang.IllegalStateException - If a subclass has missing or badly
formatted head rule datajava.lang.IllegalArgumentException - If the argument Tree has unexpected
phrasal categories in it (and the implementation doesn't just use
some heuristic to always determine some head).Tree determineHead(Tree t, Tree parent)
t - The parse tree to examine the daughters ofparent - The parent of tree t