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 int outcome
    • predIndexes

      public int[] predIndexes
    • seen

      public int seen
    • values

      public float[] values
  • Constructor Details

    • ComparableEvent

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

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