Package opennlp.tools.depparse
Record Class FeedforwardDependencyTrainer.Derivation
java.lang.Object
java.lang.Record
opennlp.tools.depparse.FeedforwardDependencyTrainer.Derivation
- Record Components:
sample- The sample.oracle- The gold transitions, in order.
- Enclosing class:
FeedforwardDependencyTrainer
private static record FeedforwardDependencyTrainer.Derivation(DependencySample sample, List<Transition> oracle)
extends Record
A projective training sample with its arc-standard oracle derivation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Transition> The field for theoraclerecord component.private final DependencySampleThe field for thesamplerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDerivation(DependencySample sample, List<Transition> oracle) Creates an instance of aDerivationrecord class. -
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.oracle()Returns the value of theoraclerecord component.sample()Returns the value of thesamplerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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). -
sample
Returns the value of thesamplerecord component.- Returns:
- the value of the
samplerecord component
-
oracle
Returns the value of theoraclerecord component.- Returns:
- the value of the
oraclerecord component
-