public class LinearCliquePotentialFunction extends java.lang.Object implements CliquePotentialFunction
Modifier and Type | Method and Description |
---|---|
double |
computeCliquePotential(int cliqueSize,
int labelIndex,
int[] cliqueFeatures,
double[] featureVal,
int posInSent) |
public double computeCliquePotential(int cliqueSize, int labelIndex, int[] cliqueFeatures, double[] featureVal, int posInSent)
computeCliquePotential
in interface CliquePotentialFunction
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