opennlp.model
Class ComparableEvent

java.lang.Object
  extended by opennlp.model.ComparableEvent
All Implemented Interfaces:
Comparable

public class ComparableEvent
extends Object
implements Comparable

A maxent event representation which we can use to sort based on the predicates indexes contained in the events.


Field Summary
 int outcome
           
 int[] predIndexes
           
 int seen
           
 float[] values
           
 
Constructor Summary
ComparableEvent(int oc, int[] pids)
           
ComparableEvent(int oc, int[] pids, float[] values)
           
 
Method Summary
 int compareTo(Object o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

outcome

public int outcome

predIndexes

public int[] predIndexes

seen

public int seen

values

public float[] values
Constructor Detail

ComparableEvent

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

ComparableEvent

public ComparableEvent(int oc,
                       int[] pids)
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.