Package opennlp.tools.postag
Schnittstelle POSTagger
- Alle bekannten Implementierungsklassen:
POSTaggerME,ThreadSafePOSTaggerME
public interface POSTagger
The interface for part of speech taggers.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]Assigns the sentence of tokens pos tags.String[]Assigns the sentence of tokens pos tags.Sequence[]topKSequences(String[] sentence) Assigns the sentence the top-ksequences.Sequence[]topKSequences(String[] sentence, Object[] additionalContext) Assigns the sentence the top-ksequences.
-
Methodendetails
-
tag
Assigns the sentence of tokens pos tags.- Parameter:
sentence- The sentence of tokens to be tagged.- Gibt zurück:
- An array of pos tags for each token provided in
sentence.
-
tag
Assigns the sentence of tokens pos tags.- Parameter:
sentence- The sentence of tokens to be tagged.additionalContext- The context to provide additional information with.- Gibt zurück:
- An array of pos tags for each token provided in
sentence.
-
topKSequences
Assigns the sentence the top-ksequences.- Parameter:
sentence- The sentence of tokens to be tagged.- Gibt zurück:
- An array of
sequencesfor each token provided insentence.
-
topKSequences
Assigns the sentence the top-ksequences.- Parameter:
sentence- The sentence of tokens to be tagged.additionalContext- The context to provide additional information with.- Gibt zurück:
- An array of
sequencesfor each token provided insentence.
-