opennlp.tools.postag
Class POSSample

java.lang.Object
  extended by opennlp.tools.postag.POSSample

public class POSSample
extends Object

Represents an pos-tagged sentence.


Constructor Summary
POSSample(List<String> sentence, List<String> tags)
           
POSSample(String[] sentence, String[] tags)
           
 
Method Summary
 String[] getSentence()
           
 String[] getTags()
           
static POSSample parse(String sentenceString)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

POSSample

public POSSample(String[] sentence,
                 String[] tags)

POSSample

public POSSample(List<String> sentence,
                 List<String> tags)
Method Detail

getSentence

public String[] getSentence()

getTags

public String[] getTags()

toString

public String toString()
Overrides:
toString in class Object

parse

public static POSSample parse(String sentenceString)
                       throws InvalidFormatException
Throws:
InvalidFormatException


Copyright © 2010. All Rights Reserved.