|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HeadFinder
An interface for finding the "head" daughter of a phrase structure tree. This could potentially be any sense of "head", but has mainly been used to find the lexical head for lexicalized PCFG parsing.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Tree determineHead(Tree t)
t - The parse tree to examine the daughters of
null if no head is found.
But maybe it should throw an exception?
Tree determineHead(Tree t,
Tree parent)
t - The parse tree to examine the daughters ofparent - The parent of tree t
null if no head is found.
But maybe it should throw an exception?
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||