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)
POSSample
public POSSample(List<String> sentence,
List<String> tags,
String[][] additionalContext)
POSSample
public POSSample(String[] sentence,
String[] tags,
String[][] additionalContext)
getSentence
public String[] getSentence()
getTags
public String[] getTags()
getAddictionalContext
public String[][] getAddictionalContext()
toString
public String toString()
- Overrides:
toString
in class Object
parse
public static POSSample parse(String sentenceString)
throws InvalidFormatException
- Throws:
InvalidFormatException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.