Package opennlp.tools.postag
Interface POSTagger
-
- All Known Implementing Classes:
POSTaggerME
public interface POSTaggerThe interface for part of speech taggers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]tag(java.lang.String[] sentence)Assigns the sentence of tokens pos tags.java.lang.String[]tag(java.lang.String[] sentence, java.lang.Object[] additionaContext)Sequence[]topKSequences(java.lang.String[] sentence)Sequence[]topKSequences(java.lang.String[] sentence, java.lang.Object[] additionaContext)
-
-
-
Method Detail
-
tag
java.lang.String[] tag(java.lang.String[] sentence)
Assigns the sentence of tokens pos tags.- Parameters:
sentence- The sentece of tokens to be tagged.- Returns:
- an array of pos tags for each token provided in sentence.
-
tag
java.lang.String[] tag(java.lang.String[] sentence, java.lang.Object[] additionaContext)
-
topKSequences
Sequence[] topKSequences(java.lang.String[] sentence)
-
topKSequences
Sequence[] topKSequences(java.lang.String[] sentence, java.lang.Object[] additionaContext)
-
-