Package opennlp.tools.parser
Interface HeadRules
-
- All Known Implementing Classes:
AncoraSpanishHeadRules,HeadRules
public interface HeadRulesEncoder for head rules associated with parsing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParsegetHead(Parse[] constituents, String type)Retrieves the headconstituentfor the specified constituents of giventype.Set<String>getPunctuationTags()
-
-
-
Method Detail
-
getHead
Parse getHead(Parse[] constituents, String type)
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.
-
-