Klasse Event

java.lang.Object
opennlp.tools.ml.model.Event

public class Event extends Object
The context of a decision point during training. This includes contextual predicates and an outcome.
  • Konstruktordetails

    • Event

      public Event(String outcome, CharSequence[] context)
      Instantiates an Event.
      Parameter:
      outcome - The outcome to use. Must not be null.
      context - The array of context elements. Must not be null.
    • Event

      public Event(String outcome, String[] context, float[] values)
      Instantiates an Event.
      Parameter:
      outcome - The outcome to use. Must not be null.
      context - The array of context elements. Must not be null.
      values - The float array to use.
    • Event

      public Event(String outcome, CharSequence[] context, float[] values)
      Instantiates an Event.
      Parameter:
      outcome - The outcome to use. Must not be null.
      context - The array of context elements. Must not be null.
      values - The float array to use.
  • Methodendetails

    • getOutcome

      public String getOutcome()
      Gibt zurück:
      Retrieves the outcome.
    • getContext

      public String[] getContext()
      Gibt zurück:
      Retrieves the array of context elements.
    • getValues

      public float[] getValues()
      Gibt zurück:
      Retrieves the float array.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object