Package opennlp.tools.util
Record Class TrainingConfiguration
java.lang.Object
java.lang.Record
opennlp.tools.util.TrainingConfiguration
- Record Components:
- progMon-- TrainingProgressMonitorused to monitor the training progress.
- stopCriteria-- StopCriteriaused to abort training when the criteria is met.
public record TrainingConfiguration(TrainingProgressMonitor progMon, StopCriteria<Double> stopCriteria)
extends Record
Configuration used for 
AbstractModel training.- 
Constructor SummaryConstructorsConstructorDescriptionTrainingConfiguration(TrainingProgressMonitor progMon, StopCriteria<Double> stopCriteria) Creates an instance of aTrainingConfigurationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.progMon()Returns the value of theprogMonrecord component.Returns the value of thestopCriteriarecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
TrainingConfigurationCreates an instance of aTrainingConfigurationrecord class.- Parameters:
- progMon- the value for the- progMonrecord component
- stopCriteria- the value for the- stopCriteriarecord component
 
 
- 
- 
Method Details- 
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).
- 
progMonReturns the value of theprogMonrecord component.- Returns:
- the value of the progMonrecord component
 
- 
stopCriteriaReturns the value of thestopCriteriarecord component.- Returns:
- the value of the stopCriteriarecord component
 
 
-