Class EvalParameters

java.lang.Object
opennlp.tools.ml.model.EvalParameters
Direct Known Subclasses:
NaiveBayesEvalParameters

public class EvalParameters extends Object
This class encapsulates the variables used in producing probabilities from a model and facilitates passing these variables to the eval method.
  • Field Details

    • params

      private final Context[] params
      Mapping between outcomes and parameter values for each context. The integer representation of the context can be found using pmap.
    • numOutcomes

      private final int numOutcomes
      The number of outcomes being predicted.
    • correctionConstant

      private double correctionConstant
      The maximum number of features fired in an event. Usually referred to as C. This is used to normalize the number of features which occur in an event.
  • Constructor Details

    • EvalParameters

      public EvalParameters(Context[] params, int numOutcomes)
  • Method Details

    • getParams

      public Context[] getParams()
    • getNumOutcomes

      public int getNumOutcomes()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object