Class ParallelNegLogLikelihood

java.lang.Object
opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
opennlp.tools.ml.maxent.quasinewton.ParallelNegLogLikelihood
All Implemented Interfaces:
Function

public class ParallelNegLogLikelihood extends NegLogLikelihood
Evaluate negative log-likelihood and its gradient in parallel
  • Constructor Details

    • ParallelNegLogLikelihood

      public ParallelNegLogLikelihood(DataIndexer indexer, int threads)
      Parameters:
      indexer - The DataIndexer to use as input provider.
      threads - The number of thread to compute with in parallel. Must be greater than 0.
      Throws:
      IllegalArgumentException - Thrown if parameters were invalid.
  • Method Details