Package opennlp.tools.parser
Interface HeadRules
-
- All Known Implementing Classes:
AncoraSpanishHeadRules
,HeadRules
public interface HeadRules
Encoder for head rules associated with parsing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Parse
getHead(Parse[] constituents, String type)
Retrieves the headconstituent
for the specified constituents of giventype
.Set<String>
getPunctuationTags()
-
-
-
Method Detail
-
getHead
Parse getHead(Parse[] constituents, String type)
Retrieves the headconstituent
for the specified constituents of giventype
.- Parameters:
constituents
- Theconstituents
which make up a constituent of the specifiedtype
.type
- The type of a constituent which is made up of theconstituents
.- Returns:
- The
constituent
which represents the head.
-
-