public interface HeadFinder
Modifier and Type | Method and Description |
---|---|
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 . |
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.Copyright © 2017 The Apache Software Foundation. All rights reserved.