opennlp.tools.postag
Interface POSTagger

All Known Implementing Classes:
POSTaggerME

public interface POSTagger

The interface for part of speech taggers.


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

Method Detail

tag

@Deprecated
java.util.List<java.lang.String> tag(java.util.List<java.lang.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

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

@Deprecated
java.lang.String tag(java.lang.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(java.util.List<java.lang.String> sentence)
Deprecated. call topKSequences(String[]) instead


topKSequences

Sequence[] topKSequences(java.lang.String[] sentence)


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