Package opennlp.tools.ml.model
Class ComparablePredicate
- java.lang.Object
-
- opennlp.tools.ml.model.ComparablePredicate
-
- All Implemented Interfaces:
Comparable<ComparablePredicate>
public class ComparablePredicate extends Object implements 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(String n, int[] ocs, double[] ps)
-
-
-
Field Detail
-
name
public String name
-
outcomes
public int[] outcomes
-
params
public double[] params
-
-
Constructor Detail
-
ComparablePredicate
public ComparablePredicate(String n, int[] ocs, double[] ps)
-
-
Method Detail
-
compareTo
public int compareTo(ComparablePredicate cp)
- Specified by:
compareTo
in interfaceComparable<ComparablePredicate>
-
-