Package opennlp.tools.postag
Class POSSample
- java.lang.Object
-
- opennlp.tools.postag.POSSample
-
- All Implemented Interfaces:
Serializable
public class POSSample extends Object implements Serializable
Represents an pos-tagged sentence.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description POSSample(String[] sentence, String[] tags)
POSSample(String[] sentence, String[] tags, String[][] additionalContext)
POSSample(List<String> sentence, List<String> tags)
POSSample(List<String> sentence, List<String> tags, String[][] additionalContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String[][]
getAddictionalContext()
String[]
getSentence()
String[]
getTags()
int
hashCode()
static POSSample
parse(String sentenceString)
String
toString()
-
-
-
Method Detail
-
getSentence
public String[] getSentence()
-
getTags
public String[] getTags()
-
getAddictionalContext
public String[][] getAddictionalContext()
-
parse
public static POSSample parse(String sentenceString) throws InvalidFormatException
- Throws:
InvalidFormatException
-
-