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 tokenindex
given the specifiedtokens
and previoustags
.
-
Methodendetails
-
getContext
Returns the context for making a postag decision at the specified tokenindex
given the specifiedtokens
and previoustags
.- Angegeben von:
getContext
in 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
index
given the specifiedtokens
and previoustags
.
-