opennlp.tools.postag
Interface POSTagger

All Known Implementing Classes:
POSTaggerME

public interface POSTagger

The interface for part of speech taggers.


Method Summary
 List<String> tag(List<String> sentence)
          Deprecated. call tag(String[]) instead
 String tag(String sentence)
          Deprecated. call tag(String[]) instead use WhiteSpaceTokenizer.INSTANCE.tokenize to obtain the String array.
 String[] tag(String[] sentence)
          Assigns the sentence of tokens pos tags.
 String[] tag(String[] sentence, Object[] additionaContext)
           
 Sequence[] topKSequences(List<String> sentence)
          Deprecated. call topKSequences(String[]) instead
 Sequence[] topKSequences(String[] sentence)
           
 Sequence[] topKSequences(String[] sentence, Object[] additionaContext)
           
 

Method Detail

tag

@Deprecated
List<String> tag(List<String> sentence)
Deprecated. call tag(String[]) instead

Assigns the sentence of tokens pos tags.

Parameters:
sentence - The sentence of tokens to be tagged.
Returns:
a list of pos tags for each token provided in sentence.

tag

String[] tag(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

String[] tag(String[] sentence,
             Object[] additionaContext)

tag

@Deprecated
String tag(String sentence)
Deprecated. call tag(String[]) instead use WhiteSpaceTokenizer.INSTANCE.tokenize to obtain the String array.

Assigns the sentence of space-delimied tokens pos tags.

Parameters:
sentence - The sentece of space-delimited tokens to be tagged.
Returns:
a string of space-delimited pos tags for each token provided in sentence.

topKSequences

@Deprecated
Sequence[] topKSequences(List<String> sentence)
Deprecated. call topKSequences(String[]) instead


topKSequences

Sequence[] topKSequences(String[] sentence)

topKSequences

Sequence[] topKSequences(String[] sentence,
                         Object[] additionaContext)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.