Package opennlp.tools.ml.model
Class ComparablePredicate
- java.lang.Object
-
- opennlp.tools.ml.model.ComparablePredicate
-
- All Implemented Interfaces:
java.lang.Comparable<ComparablePredicate>
public class ComparablePredicate extends java.lang.Object implements java.lang.Comparable<ComparablePredicate>
A maxent predicate representation which we can use to sort based on the outcomes. This allows us to make the mapping of features to their parameters much more compact.
-
-
Constructor Summary
Constructors Constructor Description ComparablePredicate(java.lang.String n, int[] ocs, double[] ps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ComparablePredicate cp)
boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ComparablePredicate cp)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ComparablePredicate>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-