Klasse Context

java.lang.Object
opennlp.tools.ml.model.Context
Bekannte direkte Unterklassen:
MutableContext

public class Context extends Object
Class which associates a real valued parameter or expected value with a particular contextual predicate or feature. This is used to store maxent model parameters as well as model and empirical expected values.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Context(int[] outcomePattern, double[] parameters)
    Creates a new parameters object with the specified parameters associated with the specified outcome pattern.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
     
    int[]
     
    double[]
     
    int
     

    Von Klasse geerbte Methoden java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Context

      public Context(int[] outcomePattern, double[] parameters)
      Creates a new parameters object with the specified parameters associated with the specified outcome pattern.
      Parameter:
      outcomePattern - Array of outcomes for which parameters exists for this context.
      parameters - Parameters for the outcomes specified.
  • Methodendetails

    • getOutcomes

      public int[] getOutcomes()
      Gibt zurück:
      Retrieves the array of outcomes for which parameters exists for this context.
    • getParameters

      public double[] getParameters()
      Gibt zurück:
      Retrieves the array of parameters for the outcomes of this context.
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object