opennlp.maxent
Class ComparableEvent

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

public class ComparableEvent
extends java.lang.Object
implements java.lang.Comparable

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

Version:
$Revision: 1.5 $, $Date: 2007/04/13 16:13:00 $
Author:
Jason Baldridge

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(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.