Package opennlp.tools.util
Record Class TokenTag
java.lang.Object
java.lang.Record
opennlp.tools.util.TokenTag
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.
- 
Constructor Details- 
TokenTagCreates an instance of aTokenTagrecord class.- Parameters:
- token- the value for the- tokenrecord component
- tag- the value for the- tagrecord component
- additionalData- the value for the- additionalDatarecord component
 
 
- 
- 
Method Details- 
extractTokens
- 
extractTags
- 
create
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
tokenReturns the value of thetokenrecord component.- Returns:
- the value of the tokenrecord component
 
- 
tagReturns the value of thetagrecord component.- Returns:
- the value of the tagrecord component
 
- 
additionalDataReturns the value of theadditionalDatarecord component.- Returns:
- the value of the additionalDatarecord component
 
 
-