Package opennlp.tools.util
Class TokenTag
- java.lang.Object
-
- opennlp.tools.util.TokenTag
-
public class TokenTag extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TokenTag(java.lang.String token, java.lang.String tag, java.lang.String[] addtionalData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenTag[]
create(java.lang.String[] toks, java.lang.String[] tags)
boolean
equals(java.lang.Object o)
static java.lang.String[]
extractTags(TokenTag[] tuples)
static java.lang.String[]
extractTokens(TokenTag[] tuples)
java.lang.String[]
getAddtionalData()
java.lang.String
getTag()
java.lang.String
getToken()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getToken
public java.lang.String getToken()
-
getTag
public java.lang.String getTag()
-
getAddtionalData
public java.lang.String[] getAddtionalData()
-
extractTokens
public static java.lang.String[] extractTokens(TokenTag[] tuples)
-
extractTags
public static java.lang.String[] extractTags(TokenTag[] tuples)
-
create
public static TokenTag[] create(java.lang.String[] toks, java.lang.String[] tags)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-