@FunctionalInterface
public interface CliquePotentialFunction
Modifier and Type | Method and Description |
---|---|
double |
computeCliquePotential(int cliqueSize,
int labelIndex,
int[] cliqueFeatures,
double[] featureVal,
int posInSent) |
double computeCliquePotential(int cliqueSize, int labelIndex, int[] cliqueFeatures, double[] featureVal, int posInSent)
cliqueSize
- 1 if node clique, 2 if edge clique, etclabelIndex
- the index of the output class labelcliqueFeatures
- an int array containing the feature indices that are active in this cliquefeatureVal
- a double array containing the feature values corresponding to feature indices in cliqueFeatures