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 headconstituentfor the specified constituents of giventype.
-
Method Details
-
getHead
Retrieves the headconstituentfor the specified constituents of giventype.- Parameters:
constituents- Theconstituentswhich make up a constituent of the specifiedtype.type- The type of a constituent which is made up of theconstituents.- Returns:
- The
constituentwhich represents the head.
-
getPunctuationTags
- Returns:
- Retrieves the set of punctuation tags. Attachment decisions for these tags will not be modeled.
-