|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HeadFinder
Interface for finding head words in noun phrases and head noun-phrases in parses.
| Method Summary | |
|---|---|
Parse |
getHead(Parse parse)
Returns the child parse which contains the lexical head of the specified parse. |
int |
getHeadIndex(Parse parse)
Returns which index the specified list of token is the head word. |
Parse |
getHeadToken(Parse np)
Returns head token for the specified np parse. |
Parse |
getLastHead(Parse p)
Returns the parse bottom-most head of a Parse. |
| Method Detail |
|---|
Parse getHead(Parse parse)
parse - The parse in which to find the head.
int getHeadIndex(Parse parse)
parse - The parse in which to find the head index.
Parse getLastHead(Parse p)
Parse. If no
head is available which is a child of p then p is returned.
p - Parse to find the head of.
Parse getHeadToken(Parse np)
np - The noun parse to get head from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||