Package opennlp.tools.monitoring
Interface TrainingProgressMonitor
- All Known Implementing Classes:
- DefaultTrainingProgressMonitor
public interface TrainingProgressMonitor
An interface to capture training progress of an 
AbstractModel.- 
Method SummaryModifier and TypeMethodDescriptionvoiddisplay(boolean clear) Displays the training progress and optionally clears the recorded progress (to save memory).voidfinishedIteration(int iteration, int numberCorrectEvents, int totalEvents, TrainingMeasure measure, double measureValue) Captures the Iteration progress.voidfinishedTraining(int iterations, StopCriteria<?> stopCriteria) Captures the training completion progress.booleanChecks whether the training has finished.
- 
Method Details- 
finishedIterationvoid finishedIteration(int iteration, int numberCorrectEvents, int totalEvents, TrainingMeasure measure, double measureValue) Captures the Iteration progress.- Parameters:
- iteration- The completed iteration number.
- numberCorrectEvents- Number of correctly predicted events in this iteration.
- totalEvents- Total count of events processed in this iteration.
- measure-- TrainingMeasure.
- measureValue- measure value corresponding to the applicable- TrainingMeasure.
 
- 
finishedTrainingCaptures the training completion progress.- Parameters:
- iterations- Total number of iterations configured for the training.
- stopCriteria-- StopCriteriafor the training.
 
- 
isTrainingFinishedboolean isTrainingFinished()Checks whether the training has finished.- Returns:
- trueif the training has finished,- falseif the training is not yet completed.
 
- 
displayvoid display(boolean clear) Displays the training progress and optionally clears the recorded progress (to save memory). Callers of this method can invoke it periodically during training, to avoid holding too much progress related data in memory.- Parameters:
- clear- Set to true to clear the recorded progress.
 
 
-