Package opennlp.tools.postag
Interface POSTagger
- All Known Implementing Classes:
- POSTaggerME,- ThreadSafePOSTaggerME
public interface POSTagger
The interface for part of speech taggers.
- 
Method SummaryModifier and TypeMethodDescriptionString[]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.
- 
Method Details- 
tagAssigns the sentence of tokens pos tags.- Parameters:
- sentence- The sentence of tokens to be tagged.
- Returns:
- An array of pos tags for each token provided in sentence.
 
- 
tagAssigns the sentence of tokens pos tags.- Parameters:
- sentence- The sentence of tokens to be tagged.
- additionalContext- The context to provide additional information with.
- Returns:
- An array of pos tags for each token provided in sentence.
 
- 
topKSequencesAssigns the sentence the top-ksequences.- Parameters:
- sentence- The sentence of tokens to be tagged.
- Returns:
- An array of sequencesfor each token provided insentence.
 
- 
topKSequencesAssigns the sentence the top-ksequences.- Parameters:
- sentence- The sentence of tokens to be tagged.
- additionalContext- The context to provide additional information with.
- Returns:
- An array of sequencesfor each token provided insentence.
 
 
-