Package opennlp.tools.ml.model
Class ComparablePredicate
java.lang.Object
opennlp.tools.ml.model.ComparablePredicate
- All Implemented Interfaces:
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
name
-
outcomes
public final int[] outcomes -
params
public final double[] params
-
-
Constructor Details
-
ComparablePredicate
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComparablePredicate>
-
hashCode
public int hashCode() -
equals
-
toString
-