Package opennlp.tools.util
Record Class TokenTag
java.lang.Object
java.lang.Record
opennlp.tools.util.TokenTag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the value of theadditionalData
record component.static TokenTag[]
final boolean
Indicates whether some other object is "equal to" this one.static String[]
extractTags
(TokenTag[] tuples) static String[]
extractTokens
(TokenTag[] tuples) String[]
Deprecated, for removal: This API element is subject to removal in a future version.getTag()
Deprecated, for removal: This API element is subject to removal in a future version.getToken()
Deprecated, for removal: This API element is subject to removal in a future version.final int
hashCode()
Returns a hash code value for this object.tag()
Returns the value of thetag
record component.token()
Returns the value of thetoken
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
TokenTag
Creates an instance of aTokenTag
record class.- Parameters:
token
- the value for thetoken
record componenttag
- the value for thetag
record componentadditionalData
- the value for theadditionalData
record component
-
-
Method Details
-
getToken
Deprecated, for removal: This API element is subject to removal in a future version. -
getTag
Deprecated, for removal: This API element is subject to removal in a future version. -
getAdditionalData
Deprecated, for removal: This API element is subject to removal in a future version. -
extractTokens
-
extractTags
-
create
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
tag
Returns the value of thetag
record component.- Returns:
- the value of the
tag
record component
-
additionalData
Returns the value of theadditionalData
record component.- Returns:
- the value of the
additionalData
record component
-