Class ComparableEvent

java.lang.Object
opennlp.tools.ml.model.ComparableEvent
All Implemented Interfaces:
Comparable<ComparableEvent>

public class ComparableEvent extends Object implements Comparable<ComparableEvent>
A maxent event representation which we can use to sort based on the predicates indexes contained in the events.
  • Field Details

    • outcome

      public final int outcome
    • predIndexes

      public final int[] predIndexes
    • seen

      public int seen
    • values

      public final float[] values
  • Constructor Details

    • ComparableEvent

      public ComparableEvent(int oc, int[] pids, float[] values)
    • ComparableEvent

      public ComparableEvent(int oc, int[] pids)
  • Method Details