Record Class Tokens
java.lang.Object
java.lang.Record
opennlp.dl.Tokens
- Record Components:
tokens- The tokens themselves.ids- The token IDs as retrieved from the vocabulary.mask- The token mask. (Typically all 1.)types- The token types. (Typically all 1.)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.long[]ids()Returns the value of theidsrecord component.long[]mask()Returns the value of themaskrecord component.String[]tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.long[]types()Returns the value of thetypesrecord component.
-
Constructor Details
-
Method Details
-
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). -
tokens
-
ids
-
mask
-
types
-