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)
          Assigns the sentence of tokens pos tags.
 String tag(String sentence)
          Assigns the sentence of space-delimied tokens pos tags.
 String[] tag(String[] sentence)
          Assigns the sentence of tokens pos tags.
 Sequence[] topKSequences(List<String> sentence)
           
 Sequence[] topKSequences(String[] sentence)
           
 

Method Detail

tag

List<String> tag(List<String> sentence)
Assigns the sentence of tokens pos tags.

Parameters:
sentence - The sentece 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)
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

Sequence[] topKSequences(List<String> sentence)

topKSequences

Sequence[] topKSequences(String[] sentence)


Copyright © 2010. All Rights Reserved.