Package opennlp.tools.parser
Interface HeadRules
- All Known Implementing Classes:
AncoraSpanishHeadRules
,HeadRules
public interface HeadRules
Encoder for head rules associated with parsing.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the headconstituent
for the specified constituents of giventype
.
-
Method Details
-
getHead
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.
-
getPunctuationTags
- Returns:
- Retrieves the set of punctuation tags. Attachment decisions for these tags will not be modeled.
-