Package opennlp.tools.postag
Schnittstelle POSContextGenerator
- Alle Superschnittstellen:
BeamSearchContextGenerator<String>
- Alle bekannten Implementierungsklassen:
ConfigurablePOSContextGenerator,DefaultPOSContextGenerator
Interface for a
BeamSearchContextGenerator used in POS tagging.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]getContext(int index, String[] tokens, String[] prevTags, Object[] additionalContext) Returns the context for making a postag decision at the specified tokenindexgiven the specifiedtokensand previoustags.
-
Methodendetails
-
getContext
Returns the context for making a postag decision at the specified tokenindexgiven the specifiedtokensand previoustags.- Angegeben von:
getContextin SchnittstelleBeamSearchContextGenerator<String>- Parameter:
index- The index of the token for which the context is provided.tokens- The token sequence representing a sentence.prevTags- The tags assigned to the previous words in the sentence.additionalContext- The context for additional information.- Gibt zurück:
- The context for making a postag decision at the specified token
indexgiven the specifiedtokensand previoustags.
-