Class LogLikelihoodThresholdBreached

java.lang.Object
opennlp.tools.monitoring.LogLikelihoodThresholdBreached
All Implemented Interfaces:
Predicate<Double>, opennlp.tools.monitoring.StopCriteria<Double>

public class LogLikelihoodThresholdBreached extends Object implements opennlp.tools.monitoring.StopCriteria<Double>
A StopCriteria implementation to identify whether the difference between the log likelihood of current and previous iteration is under the defined threshold.
  • Field Details

    • STOP

      public static String STOP
  • Constructor Details

    • LogLikelihoodThresholdBreached

      public LogLikelihoodThresholdBreached(opennlp.tools.util.Parameters trainingParameters)
  • Method Details

    • getMessageIfSatisfied

      public String getMessageIfSatisfied()
      Specified by:
      getMessageIfSatisfied in interface opennlp.tools.monitoring.StopCriteria<Double>
    • test

      public boolean test(Double currVsPrevLLDiff)
      Specified by:
      test in interface Predicate<Double>