opennlp.tools.postag
Class POSSample
java.lang.Object
opennlp.tools.postag.POSSample
public class POSSample
- extends Object
Represents an pos-tagged sentence.
POSSample
public POSSample(String[] sentence,
String[] tags)
POSSample
public POSSample(List<String> sentence,
List<String> tags)
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.