Record Class TokenTag
java.lang.Object
java.lang.Record
opennlp.tools.util.TokenTag
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the value of theadditionalDatarecord component.static TokenTag[]final booleanIndicates whether some other object is "equal to" this one.static String[]extractTags(TokenTag[] tuples) static String[]extractTokens(TokenTag[] tuples) final inthashCode()Returns a hash code value for this object.tag()Returns the value of thetagrecord component.token()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
token
The field for thetokenrecord component. -
tag
The field for thetagrecord component. -
additionalData
The field for theadditionalDatarecord component.
-
-
Constructor Details
-
TokenTag
-
-
Method Details
-
extractTokens
-
extractTags
-
create
-
toString
-
hashCode
-
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 thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
additionalData
Returns the value of theadditionalDatarecord component.- Returns:
- the value of the
additionalDatarecord component
-